Git Product home page Git Product logo

tic-tac-toe-tut's Introduction

Tic-Tac-Toe

License: MIT

cover

A multipler tic-tac-toe built with AdonisJS Websockets. A matching tutorial to this repo can be found here.

Table of Content

Requirements

This project requires local installations of the following

Installation

Step 1: Clone the repo

git clone https://github.com/vicradon/tic-tac-toe

Step 2: Install dependencies

$ npm i

Step 3: Start the Redis server

$ redis-server

Step 3: In another terminal, start the Adonis server

$ adonis serve --dev

Project Architecture

Controllers

The controllers contain the bulk of the business logic of the app.

  1. The GameController.js deals with game initialization and rendering the game view
  2. The UserController.js deals with setting and resetting usernames
  3. The TicTacToeController.js is a web socket controller that deals with the game state, logic and rounds.

Frontend

The project follows an MVC architecture. Views are written using Adonis edge. The project uses pure javascript and bootstrap 5.

Contributing

Feel free to open an issue if you notice any error in the code.

Licence

MIT

This repo is licenced under the MIT Licence. Copyright © 2021, Osinachi Chukwujama

tic-tac-toe-tut's People

Contributors

vicradon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

osti-barrozo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.