A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Flash chess AI game

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    57

    Flash chess AI game

    Hi, just wanted to show my flash chess game, where you play against the computer!

    http://veclock.deviantart.com/art/Ch...Game-119834433
    Hope you like it!

  2. #2
    Senior Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    269
    Nice job. It looks good and plays nicely. It seems quite easy to beat it, but I guess chess AI is very tough to program, so kudos to you.

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    57
    Thanks! Yes, it's quite easy to beat, but when I let beginners try it, it acctually wins some times.

    It was quite hard to make it, the hardest part was to design the AI

  4. #4
    Now tell me whos watchin...... samvillian's Avatar
    Join Date
    Feb 2007
    Location
    Where do you live?
    Posts
    539
    Ya it was very smooth. Must've been hard to program the AI, though it was kinda easy to win. maybe it just seems hard to us because we are less stupid than most people.
    If the only tool you have is a hammer, you tend to see every problem as a nail.

    Xbox 360 Modding Controller PS3 Mod Paint Spray LED Case

  5. #5
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    Nice AI! I once did AI for a tic tac toe game, that added positive and weight values to each tile depending on where the player moved, and then picked the highest valued tile. I can see that working with chess also. What method did you use?
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

  6. #6
    Member
    Join Date
    Oct 2004
    Posts
    57
    Quote Originally Posted by Pazil View Post
    Nice AI! I once did AI for a tic tac toe game, that added positive and weight values to each tile depending on where the player moved, and then picked the highest valued tile. I can see that working with chess also. What method did you use?
    A method similar to that. The AI tries every move it can do, and gets positive and negative points for each test, then it chooses the tile that got the most points. :>

  7. #7
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    I think more advanced chess AI works basically same way, only it looks deeper into many moves ahead (if I move here and opponent moves there and then I move this piece...).

  8. #8
    Member
    Join Date
    Oct 2004
    Posts
    57

    tonypa

    Yes, it was acually a very good method. My AI is not that deep though...

  9. #9
    Senior Member Pazil's Avatar
    Join Date
    Sep 2006
    Location
    Ontario, Canada
    Posts
    913
    That seems very interesting, except it could take ages for Flash to do that, even with just looking ahead one step further. None the less, that would be a very cool thing to try out!

    Again, good job on the game! It's nicely polished as well.
    WIP-ZOMBIES

    I love vegetarians! More meat for the rest of us!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center