Skip to content

lslavuj/tic-tac-toe-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Console Game

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.

Requirements

  • Node.js version 18.15.0 or higher.

How to Play

  1. Clone this repository and navigate to the project directory.

  2. Run npm install to install the required dependencies.

  3. Run npm start to start the game.

  4. Enter which player you want to start first (X or O).

    My Image

  5. Enter the number of the field where you want to insert your symbol (X or O).

    My Image

  6. The game will continue until one player wins or the board is full and it's a draw.

    My Image

  7. You can simply stop the game running ctrl + c in the console.

Features

  • Input validation: The game validates user input and prompts the user to enter a valid input if they enter an invalid one.

    My Image

    My Image

  • 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!

Releases

No releases published

Packages

No packages published