A beginner's stupid cmd game. I am looking for advice.

I started to learn to program a couple years ago as a hobby. Up to this day, I like, every few months, messing around making games that work on Windows' CMD.

I know I have a long way to go. During the last few days I've been making this Tic-Tac-Toe game that plays on a 5x5 grid instead of the normal 3x3. To win, you make a line of 4, and in case of a draw, the winner is instead the player that made the most lines of three.

I made this thread to share the work for anyone interested in advising a semi-new C++ user.


I programmed this thing to have fun and pass the time, so many things are probably not the fanciest or most adequate in terms of coding: Global variables instead of passing them around, a single .cpp file, etc. Regardless, the game is pretty sophisticated for Windows' CMD, I believe.
I'd like to get advice on the paths I should have taken instead, to get the finished result. What did I do right? What did I do wrong? The thing works, and I'm happy with how it ended up for just a few days of boredom, but it might not take me anywhere when compared to serious coding (even for this low category).


Here are some images of the thing working (with some random code in the background). The images might get your attention!:
http://i.imgur.com/PXQvk13.png
http://i.imgur.com/WY93Aa6.png
http://i.imgur.com/WBj7fcK.png
http://i.imgur.com/nSf4bzx.png


Since the code is so big (700 lines of code), here is the direct download from my Dropbox. Don't worry; it's safe:
https://dl.dropboxusercontent.com/u/43721327/C%2B%2B/TTT5/5TTT.cpp


It includes Windows commands for assigning color, so it will only compile on Windows. Obviously.



Thank you!

Last edited on
Topic archived. No new replies allowed.