AI related, a take at the classic Tic-Tac-Toe

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Space Floater
Posts: 31
Joined: Sun Sep 28, 2008 3:05 pm
Location: Horten, Norway

AI related, a take at the classic Tic-Tac-Toe

#1 Post by stride »

Had some free time this weekend so I started looking into AI related stuff, for simplicity solving the Tic-Tac-Toe game. It plays quite well, but makes some surprizing choises...

Code is not very optimized, and the AI and Evaluate functions can be changed to play the specific game better, but I've purposely left that out. I might tweak it into playing some "Space Combat" scenarios later on.

Enjoy. Please comment, or be horrified of, my rather ancient C++ knowledge - as I'm an ANSI C and perl guy :)

(1.97 KiB) Downloaded 131 times

Post Reply