- Two-player mode: Play against a friend on the same device.
- Player vs CPU mode: Play against the Computer (which is not very smart yet).
- Interactive UI: Click on cells to make moves and see the game board update in real-time(Cause why not).
- Win and tie detection: The game automatically detects winning moves and ties(bare minimium tho 😢).
- Score tracking: Keeps track of the number of wins for each player and ties(Just dont refresh).
- Responsive design: The game adapts to different screen sizes and devices.
- Functional Programmed: Because OOp is for the 1970s
You can see a live demo of the Tic Tac Toe game here.
- Clone the repository:
$ git clone https:// https://github.com/nathan-somto/tic-tac-toe.git
-
Open the
index.html
file in a web browser. -
Select the game mode (Two-player or Player vs CPU) from the game selection screen.
-
Play the game by taking turns clicking on the cells. The current player's mark (X or O) will be displayed on the cells.
-
The game automatically detects winning moves and ends the game. The result will be shown in a modal, and the scores will be updated accordingly.
-
To restart the game, click the "Next Round" button in the result modal.
No screenshots for this one just play the game