Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Tic-Tac-Toe/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (17 sloc)
1.1 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tic-Tac-Toe | |
Console-based version of Tic-Tac-Toe | |
A simple project to get me back into C++ programming and simple game programming before attempting larger and more complex projects | |
Some files are only necessary if you open the project in Code::Blocks and can otherwise be ignored | |
The Tic-Tac-Tac.exe file in the repository is the final compiled version of the game | |
It was compiled on a 64bit Windows system and so please recompile the files as instructed below to create an executable that will run on your system | |
If you are not using Code::Blocks compile main.cpp and include the following classes and necessary files: | |
AI (AI.h and AI.cpp) | |
Game (Game.h and Game.cpp) | |
Grid (Grid.h and Grid.cpp) | |
Player (Player.h and Player.cpp) | |
Then run the executable to play the game | |
Difficulties: | |
Normal - CPU will choose a square on the grid at random, very easy to beat | |
Impossible - Plays the optimum strategy for a 3x3 grid, should be unbeatable with the best outcome for the player being a draw | |
Enjoy a nice simple game of Tic-Tac-Toe (Noughts and Crosses) | |
If you have any questions please let me know |