This is a Tic Tac Toe game written in TypeScript and Node.js. The game prompts the user to choose who starts first, validates the user's input, and displays the board with X in red color and O in blue color.
- Node.js version 18.15.0 or higher.
-
Clone this repository and navigate to the project directory.
-
Run
npm installto install the required dependencies. -
Run
npm startto start the game. -
Enter which player you want to start first (X or O).
-
Enter the number of the field where you want to insert your symbol (X or O).
-
The game will continue until one player wins or the board is full and it's a draw.
-
You can simply stop the game running
ctrl + cin the console.
-
Input validation: The game validates user input and prompts the user to enter a valid input if they enter an invalid one.
-
Colorful symbols: The X symbol is displayed in red and the O symbol is displayed in blue.
-
Interactive interface: The game has an easy-to-use and interactive command line interface.
Enjoy the game!