This is a simple Tic Tac Toe game that allows you to play against an AI opponent named Max. Choose from easy, hard, and random modes while playing on your choice of either a 3x3 board or a 4x4 board. When you click "New Game", the starting player is chosen randomly. The game is built with HTML, CSS, and JavaScript, using minimax algorithm for the AI. The scores are kept for each player, and the scores can be reset at any time.
- Interactive Tic Tac Toe gameplay.
- Play against an AI opponent (Max).
- Simple, intuitive user interface.
- Three modes of play: easy, hard, and random.
- Scores are kept for each player.
- Click the "New Game" button, and the starting player is chosen randomly.
- You play as "X"; Max plays as "O."
- To make a move, click on one of the empty squares on the game board.
- Play strategically to block Max.
- You win when you fill consecutive boxes in either a row, column, or diagonal.
To play the game, simply open the Tic Tac Toe Game in your web browser. You can also clone the repository and run it locally by following these steps:
-
Clone this repository:
git clone https://github.com/CynthiaWeaver-Jeannine/tic-tac-toe-game
-
Open the index.html file in your web browser.
-
Start playing and test your skills against Max!
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch with a descriptive name:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your feature description"
- Push your changes to your fork:
git push origin feature/your-feature-name
- Open a pull request to the main repository.
If you have any questions, suggestions, or if your are interested in collaborating, contact me:
cynthiajweaver@live.com
LinkedIn: Cynthia Weaver's LinkedIn Profile
GitHub Repository for this game