This is a simple implementation of the classic game, written in pure JavaScript, HTML, and CSS. It's a fun project that I've created during my leisure time, and I hope you enjoy playing it.
Currently, the game supports 2-player mode, where two players can take turns placing their marks on a 3x3, 6x6 grid or more. The first player to get three in a row (horizontally, vertically, or diagonally) wins the game. If all squares are filled and no player has won, then the game ends in a draw.
In the future, I plan to implement 1-player mode, where the computer will play against the human player. This will add an extra level of challenge and fun to the game.
To play, simply click on a square to place your mark (X or O).
I hope you have fun playing Tic Tac Toe! Let me know if you encounter any issues or have suggestions for improvements.
- Clone the repository: git clone https://github.com/panahi-projects/tic-toc-toe.git
- Navigate to the project directory:
cd tic-toc-toe - Install the packages:
npm install - Run the application:
npm run devornpm start - Open your browser and navigate to http://localhost:3000 to see the application in action.
This project has been started with Node v18.16.1
Many thanks to the creators of Express.js and Node.js for making such amazing tools available to the developer community.
