TicTacToe Game

This is a console version of the simple game that nearly everyone knows, called "Tic-Tac-Toe." I won't go into much detail about the rules as they are pretty simple, but essentially the objective of the game is to get 3 of your own marker, whether you are X or O, in a row. By "row", I mean column, row, and diagonals included.

Image Preview:

The actual input of the game is all based on the arrow keys. The cursor indicates your current position on the board, and when you are ready to make a move you hit enter to place your marker. The player's turn is indicated below the board in a line of text, and for the sake of simplicity, I have decided that player 1 is always going to be X and player 2 is always going to be O.

All of the console cursor positions are calculated from the origin of the board; top left tile. The origin is hardcoded however, and entirely depends on where the rest of the text moves that "origin." I am not very good with ASCII art, although that part of console game development is where you can really express your imagination and creativity if you wanted. Keep in mind, color can also be introduced, but I did not do that in this game. I thought it would be fun to get out of the GUI stuff for a while so I created a console based version of TicTacToe.

Video Preview:


  • Full Project Download
    [SHA256 Checksum: 5E50435B06E69DEEDE9257C5368411C057826D2B264340FE2F86BB07D80DCA2E]
    [MD5 Checksum: D1C6C42684CB5E29F0078E91B8853C73]