Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Programming Talk / C++ / C# - Dynamic AI System (Tic-Tac-Toe implementation)

Author
Message
n008
19
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 14th Sep 2009 23:36 Edited at: 13th Nov 2009 00:44
Not sure if I am allowed to put this in finished products, so I'll stick this here...

So I was bored last week and put together a dynamic AI system and made it for a Tic-Tac-Toe game. All it does is hold a large population of reproducing, competing programs who's goal is to win. This is achieved through random mutation and natural selection. I also made a 'Trainer' for it that pits random programs against each other in order to speed up the training process (Just look at the basic script in the DATA folder (AI.SRC) ) etc. If you play it right away you'll notice that the programs have figured out several winning patterns already. How most of them achieve this; I have no idea, and I wrote the scripting language that they use Seriously, the code is really messy, but works, apparently.

Download it here: http://www.filefront.com/14913979/T-T-T%20v32.rar

Please tell me what you think, or at least let me know it if crashes on you

EDIT: Fix'd link for lazy people

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75
n008
19
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 17th Sep 2009 01:58
Fixed link with improved version.

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75
n008
19
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 13th Nov 2009 00:41
Fixed another error and reuploaded.

"I have faith, that I shall win the race, even though I have no legs, and am tied to a tree." ~Mark75

Login to post a reply

Server time is: 2026-06-10 07:31:39
Your offset time is: 2026-06-10 07:31:39