I got bored yesterday and wrote a dynamic AI scripting language for a Nought & Crosses (Tic-Tac-Toe) game. So far, there's a group of programs that have evolved to beat the usual 2-5-8 win |
|
I got bored yesterday and wrote a dynamic AI scripting language for a Nought & Crosses (Tic-Tac-Toe) game. So far, there's a group of programs that have evolved to beat the usual 2-5-8 win |
|
Last edited by A Roxxor; 09-07-2009 at 09:28 PM.
Sorry, found a huge bug. Fixed it, though |
|
How does it work? |
|
Lol yeah. What it actually does is contains a population of programs that use a pretty simple (But dynamic!) scripting language that is basically all about placing pieces on the board. When you play a game, the computer randomly selects a script to run, and depending on how it performs determines how many times it gets to reproduce. Programs that get to a point where they cannot place a piece in an empty square are killed, and when an program reproduces (Always asexual with only one chromosome) random mutation and information dithering may change the script, resulting in new behavior. To get a list of all of the programs and their stats, type 13 into the console and check the data folder for Programs.txt. |
|
Forgot to actually upload the fixed version: http://www.filefront.com/14486645/T-T-T%20v4.rar |
|
Man of hidden talents. Lol. I didn't know you were into programming, roxxor. Works nicely. You should make a gui. |
|
John 3:16
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
Bookmarks