Tic Tac Toe is a simple game that is played by two players. The game is played on a 3x3 grid. The players take turns placing their symbol (either "X" or "O") in an empty cell. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game. If all cells are filled and no one has won, the game is tied.
Check out our project blog post for more information on the development process and our thoughts on the Tic Tac Toe Game project:
To get a local copy up and running follow these simple example steps.
- Clone the repo
https://github.com/CodeStudio-Content/Tic-Tac-Toe-JavaScript.git
cd Tic-Tac-Toe-JavaScript
- Open the index.html file in your browser
- Click on the boxes to play the game
- HTML
- CSS
- Javascript
- The game is played on a 3x3 grid.
- The players take turns placing their symbol (either "X" or "O") in an empty cell.
- The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
- If all cells are filled and no one has won, the game is tied.
index.html
:- This is the main file that contains the html code for the game.
style.css
:- This file contains the styling for the game.
game.js
:- This file contains the logic for the game.