This is a simple project that recreates the popular game Tic Tac Toe.
One the left side of the front page, there is a animation of the game preview made with HTML and CSS.
On the right is a menu containing two options:
- One Player: user selects the option to play a game against computer.
- Two Players: user is able to make choices for both X's and O's.
Tic Tac Toe is a game in which two players alternately put crosses and circles in one of the compartments of a square grid of nine spaces. The object is to get a row of three crosses or three circles before the opponent does.
Prerequisite: Node Package Manager installed on your device.
- Clone the project.
- Run
npm install
. - Run
npm run tsc-go
.
- Ability to restart the game with a reset button
- Ability to count score
- Optimise code