Members - Reputation: 137
Posted 18 July 2012 - 01:26 AM
I've recently started learning C++ (around 3 weeks I suppose) and all those console stuff was boring and I knew most of them from my previous knowledge of Java, so I decided to move on to SDL. And I created a Tic Tac Toe game. This is my first game in C++ so it's not really entertaining right now, but I'm planning to add AI, or maybe multiplayer via networking. I included the Code::Blocks source folder so please take a look at it and let me know if I did something wrong. Thanks!
Play directly on Windows
Source code to compile on other systems
Crossbones+ - Reputation: 1361
Posted 18 July 2012 - 03:28 PM
Two things that could be nice little additions/adjustments:
- Randomise which shape starts: as this could take away that "First move, always win" possibility.
- The mouse cursor appears after the first round is won: I'm not sure if the intention is for the Arrow to be shown from the start or if it isn't meant to be shown at all. Either way, one of these doesn't seem intended.
Other than that. Great work, and it makes me look at some of my code slightly differently. =D
Edited by stitchs, 18 July 2012 - 03:28 PM.