Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
39 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Home » Features » GD Showcase » View Submission
Intel sponsors gamedev.net search:
Game Development Showcase
Track this GDS Entry
Tic Tac Toe
Developer   capn_midnight

About: Knoughts and Crosses, as it is called by heathens.

Game Info How To Play Downloads Comments


It's the ubiquitous Tic Tac Toe game. I prefer to call it TTT.
I've included the source code for the application, with heavy use of commenting. I use a similar approach to the Hill Climbing algorithm, but I calculate it in a different way.

Project History:
Originally, this was an assignment for AI class. I began implementing it in Java, but after a week I hadn't done anything significant. I completed a complete code rewrite (in Java) the night before the due date. The next day, I left the damn thing at home. In an hour and fifteen minutes DURING class, I completely recoded the program in C, paid someone for a spare floppy, and turned in the program listing hot off the laser printer at the end of class.

Despite the time constraint, I even found time to include detailed comments on the most important aspects of the code. The main function does not include very many comments, but it's not that important anyway.

Enjoy, or whatever you do to these things.

System Requirements

Source code included, builds in GCC and VC++.NET 2003
For included binary file: DOS emulator such as CMD.EXE


 GDS News
 About the GDS