This repository contains a command-line implementation of the classic Tic Tac Toe game in C++. The game features a player-versus-AI mode where the player competes against an AI opponent.
- Install the latest version of Visual Studio (the free community edition is sufficient).
- Install the optional "C++ Universal Windows Platform tools" component.
- install the latest Windows (10/11) SDK.
- Player vs AI: Play against an AI opponent that employs a minimax algorithm to make strategic moves.
- Restart Game: After each game conclusion (win, lose, or tie), players have the option to restart the game for another round.
- Turn Order Adjustment: After a loss, the game ensures that the player who lost gets to start the next game, allowing them to play first.
- Clone repository using
git clone https://github.com/ressiws/Tic-Tac-Toe/
- Open Tic-Tac-Toe.sln in Visual Studio to build and run the Tic-Tac-Toe game.
Note
If any zero-day issue arises while using this project, we recommend that the user experiencing the problem open an issue in this product's GitHub repository to seek further assistance.
tictactoe.h
andtictactoe.cpp
Contains the implementation of the Tic Tac Toe game logic, including the board, player moves, AI moves using the minimax algorithm, win/loss checks, restart functionality, and console-based UI.
- Implement UI: Develop a user interface to enhance the game's visual experience.
- Add Difficulty Levels: Introduce options for players to choose the AI's intelligence level (e.g., Easy, Medium, Hard).
- Add Linux Support: Ensure compatibility and functionality for the game on linux systems.
Contributions to enhance the game functionalities, improve the user interface, optimize algorithms, or any other enhancements are highly encouraged! Feel free to fork the repository, implement your changes, and submit a pull request.
Copyright © 2022-2023 ressiws [email protected] This project is under the GNU v3.0 Licence