• Lucid Dreaming - Dream Views




    Results 1 to 21 of 21

    Thread: AI Program

    Hybrid View

    1. #1
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386

      AI Program

      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

      Oh, and this only works on Windows platforms.

      Download: http://www.filefront.com/14485647/T-T-T%20AI%20v2.rar
      Last edited by A Roxxor; 09-07-2009 at 09:28 PM.

    2. #2
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      Sorry, found a huge bug. Fixed it, though

      http://www.filefront.com/14485647/T-T-T%20AI%20v2.rar

    3. #3
      Xei
      UnitedKingdom Xei is offline
      Banned
      Join Date
      Aug 2005
      Posts
      9,984
      Likes
      3084
      How does it work?

      I'm guessing you've done it in a special way because it's pretty trivial to create a program which always wins or ties, you just have to list all of the different situations and the correct move.

    4. #4
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      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.

      Also, new version: http://www.filefront.com/14486417/T-T-T%20v3.rar

      Fixed a few crashes.

    5. #5
      Banned
      Join Date
      May 2007
      LD Count
      Loads
      Gender
      Location
      Digital Forest.
      Posts
      6,864
      Likes
      386
      Forgot to actually upload the fixed version: http://www.filefront.com/14486645/T-T-T%20v4.rar

    6. #6
      Credo ut intelligam Achievements:
      Referrer Bronze 5000 Hall Points Veteran First Class
      Noogah's Avatar
      Join Date
      Mar 2009
      Posts
      1,527
      Likes
      138
      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

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •