game in C++ / SDL |
||
![]() Ker sefo I was a little bored today so I decided to follow a tutorial (excellent tutorial) to create a tic-tac-toe game using C++ and SDL, a free set of library to program portable 2D graphics games or other programs. A tic-tac-toe game being very boring and not providing any challenge for my elite skills, I decided to adapt the source for a Gomoku game (or wuzi in chinese or 5 in a row) The challenge was to recode the coordinates calculation from 9 squares to 225 intersections + add a function to check for a winning move (not in the tutorial and not that easy to implement on a big board like gomoku) The game is not finished (no AI yet), but it's fully playable and the source might interest some people in the CA game project. -Sources (and dev-Cpp project) -w32 binaries My next step will be to play with AI, maybe use LUA And probably make it playable online If someone finds the courage to compile the game on linux and tell me if it works, i'd be very happy |
||
| CyberArmy::Forum v0.6 Generated In 0.00878 seconds |