menu

Tic-Tac-Toe

I’ve spend a few days working on a simple little game recently, based on Tic-Tac-Toe. It doesn’t have Crysis graphics, it doesn’t have 35 weeks of continous gameplay, it doesn’t use DirectX11, it’s a simple game.

I made a blog post a while ago about starting back from the beginning with some very simple 2D games before I do anything more entertaining to other people.

It looks like this (It’s huge, I don’t know why I made the game big):

tictactoe

And it has a fancy configuration panel I made as well:

tictactoesettings

Technical details:

-Game written in C++.

-Settings window made in Visual Basic.

-data.bin is just a zip file, music.bin is an OGG music file renamed, config.bin is a text file renamed, just leave them, it looks cool.

-I spend several days getting the game to load from zip files, ugh.

-The libraries used in the game are:

-*SDL (Graphic handling)

-*SDL_Image (for… who knows)

-*SDL_Mixer (for music)

-*SDL_ttf (Font handling)

-*PhysFS (Loading from ZIP files)

-Visual basic loads settings from the file it saves, or sets default settings if the file doesn’t exist. The game then loads these settings line by line.

Download

https://renscreations.com/files/TicTacToe.exe

Johan, why do you make us bother having to install it first?

Because, grasshopper, a battalion of Dynamic Link Libraries needs to be unleashed in your Windows directory for the game to work, and it’s just easier this way.

Do not use the shortcut, instead open the directory you installed the game. Sorry, I broke the shortcut somehow.

Bugs:

-Possible crash when top-left square is left empty for AI to use when all other squares are filled.

-AI doesn’t necessarily fill a gap to stop the player from winning.

Challenge:

-Put difficulty on hard and make naughts (computer) start first. If you can beat it, well done (it’s not that hard).