Home - Trup10ka/TicTacToe GitHub Wiki

Welcome to the TicTacToe wiki!

On this home page you can find a short description of the project and a table of contents.

Both server and client side are written in TS.

Table of contents

Short description

Server side app is written in Typescript with usage of Node.js. It uses Express.js as a framework for handling requests and responses. It also uses Socket.io for handling real-time communication between server and client. There are other few modules:

  • path - for handling paths
  • readline - for handling console input

The Web game consists of 3 pages:

  • Lobby page
  • Create game page
  • Game grid page

Gameplay

Firstly, player has an option to join a game with unique ID if he has one. However, player also has a choice to join a random game based on whether the creator of that session set up a password or not.

Secondly, client can also create his own game as mentioned before, in which he can set up the following:

  • Game Mode (all of them are described in the Game Modes section)
  • Whether random players can join or not (if password is set up, random players can't join)
  • Grid size (3x3, 5x5, 9x9)
  • Game name (optional, default is "Unnamed game")
  • Game password (optional)

Rules and Win conditions are defined in the README.md of this project.