User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Chess

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Feb 2010
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chess

    Hi

    Anybody know of a tutorial on creating a chess game where the player plays against the computer?


  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    It would be virtually impossible to create a half-decent chess AI in MMF2, and you'd pretty much have to script it in Lua or it would be ridiculously slow. Either way, it's the kind of thing people write entire books about.
    You'd probably have more luck creating a GUI for existing UCI chess engines, but even that would be difficult - http://wbec-ridderkerk.nl/html/UCIProtocol.html

    I'd strongly recommend you try something like Checkers or Backgammon first.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Feb 2010
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    Thank you. You saved me a lot of time.

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    Let's not be to hasty. KlikDisc for Feb has a Chess Extension.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    What's more it's very good extension with good AI, I played it several times and it's worthy opponent (I'm playing chess for 13 years now so I know what I'm saying).

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Feb 2010
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess


    WOW! Thanks nivram and Fanotherpg, you both saved my project from the trash pile.

    I'll order the Feb Klikdisc and keep working on the project.

    Thanks Again.
    Adrian

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    I actually tried to make a chess program for the 20 event compo, but could only get it down to around 35ish. Its true that within MMF2's engine it would be particularly slow, but you can still create a perfectly playable chess on the level of older chess program's AIs. Scripting in lua could speed it up... considerably.


    Programming it isn't actually very hard, its optimizing it that is. In the shortest essence, you're just writing a recursive algorithm that analyzes game board positions and weighs them against one another, on top of perhaps a few hardcoded reactions to known plays (ie the ruy lopez or whatever). But when you're looking at millions of states in just a few recursive depth, its a devil to work with

  8. #8
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    I'm glad you liked my extension, Fanotherpg.

    MuddyMole is right, real AI for a game like Chess is hard even for experienced programmers. Typically you can build something that will make correct moves, but it won't be challenging to anybody that knows chess. This is why this object exists.

  9. #9
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    Mokhtar, thanks very much for your extension. It's a cool surprise to see a Chess AI integrated into MMF2
    I have one question.. I see the board is updated by destroying and creating all pieces with new configuration, that's right? I haven't had a deep look at the code yet but I'd like to know if it is possible to configure a piece moving to the place like battlechess 4000 etc.

  10. #10
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chess

    I don't think it's updated by destroying and creating pieces. Note that the object only handles the logic, the visual representation is entirely up to you so you can do whatever you want there.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. 8 player chess
    By cimics in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 9th February 2012, 12:42 PM
  2. Chess object
    By badijoe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th April 2010, 07:52 PM
  3. Pocket Chess
    By nivram in forum File Archive
    Replies: 9
    Last Post: 30th April 2009, 02:59 PM
  4. Making Chess
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 14th May 2007, 10:03 PM

Posting Permissions

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