This is a client-side app of the Tic-Tac-Toe online game built using React.js. The game allows two players to play against each other in real time, using Socket.IO for communication between the server and the client. You can also play solo with a bot and customize the game with settings like cell row width or difficulty.
Here is the GitHub repository for the server https://github.com/OGUMAN/tic-tac-toe-server
Tic-Tac-Toe is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. If there are no free cells and nobody won - it's a draw.
Open the game in your browser https://portfolio-tic-tac-toe-online.onrender.com
- Click "Single-player game"
- The difficulty is medium by default and the field width is 3 cells
- To change the difficulty or field width, go to the menu and click the settings button to the right of the "Single Player" button
- Click "Multiplayer"
- Wait for another player to connect
- Once the second player has connected, the game will start automatically
- Players take turns clicking on the game board to place their X or O
- Players can vote to play again after the game ends
- You can open a chat by clicking on the chat icon in the upper left corner
- Every step takes up to 35 seconds
- To choose a nickname, click on your profile in the upper-right corner and enter the desired nickname
- Clone this repository by writing
git clone https://github.com/OGUMAN/tic-tac-toe
- Run
npm i
to install the dependencies - Run
npm start
to start the client - The client should now be running at
http://localhost:3000