Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Tic Tac Toe with AI, based on SDL
Index -> Programming, C++ -> C++ Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Barbarrosa




PostPosted: Thu Dec 17, 2009 5:28 am   Post subject: Tic Tac Toe with AI, based on SDL

I made a Tic Tac Toe game with integrated AI, using SDL libraries. Here are the files I made it with.

I hope everyone enjoys it.

Just install the SDL libraries or include SDL libs in app directory, compile using these makefiles (generated by Eclipse), and run.

If you have any comments or questions, they are welcome.

Edit:

I can't believe I never noticed that before. I changed one function call at the top level, and the efficiency skyrocketed.

SDL_PollEvent() to SDL_WaitEvent().



TicTacToe.zip
 Description:
1-player Tic Tac Toe game written in C++. Uses very little CPU.

Download
 Filename:  TicTacToe.zip
 Filesize:  68.56 KB
 Downloaded:  666 Time(s)


TicTacToe.zip
 Description:
A C++ Tic Tac Toe game with AI - uses much more CPU.

Download
 Filename:  TicTacToe.zip
 Filesize:  63.87 KB
 Downloaded:  809 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, C++ -> C++ Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: