Skip to content

Tic-Tac-Toe game with AI in C++, using object-oriented design. Players can input positions, game checks for wins/ties and AI makes random first move.

License

Notifications You must be signed in to change notification settings

Tugamer89/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

This is a C++ implementation of the Tic-Tac-Toe game where a human player plays against an AI. The game uses a 2D matrix to represent the board and players can input their desired position to place their symbol (O or X). The game constantly checks for a winning player or a tie and displays the final result. The code also includes a function to generate a random move for the AI at the start of the game.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You will need to have a Windows operating system and Visual Studio installed on your machine.

Installing

You can download the source code of the project from the GitHub repository. Once you have the files, you can open the solution in Visual Studio and build the project.

Running the Game

Once the project is built and the executable is generated, you can run the game by executing the file in the command prompt.

Built With

  • Visual Studio - The IDE used for development
  • C++ - The programming language used

Author