C++ – Tic-Tac-Toe
Download (.zip)
VC++ Redistributable Package may be needed
This is a game of Tic-Tac-Toe, this was created around the same time as JTetris to expand my experience from Java. This was written in C++ and a lot of time on this project was spent on teaching myself the differences from Java and learning on how to link to different libraries.
The AI opponent works by examining each square around it and giving it a “weight” based on different circumstances. For example if picking the square means that the AI will block a player attack then it will increase the weight of that square, likewise if the AI can win from picking a square then the weight will be raised. After this process the AI then plays the square with the highest weight.
Features:
- Single player game of Tic-Tac-Toe.
- Utilises the SDL, SDL_image and SDL_ttf libraries.
- Competent AI opponent.
- Horrid colour scheme (I was experimenting with the SDL library, sorry!)
Disclaimer: By running this software you are doing so at your own risk, I will not be held personally responsible for damage to files, hardware or anything else for that matter. To the best of my knowledge I have not written any code which poses a risk.
