User Tag List

Results 1 to 3 of 3

Thread: Bejeweled clone, check for one more possible turn

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bejeweled clone, check for one more possible turn

    Regarding to this thread, I have a somehow working example ready.

    First, again the picture with all possible turns. So that we know what we talk about.



    Example to solve this is attached. The example file is not fully working yet though. I lack the corner cases of the board. It can be that the three necessary bricks are at exactly the corners. practically impossible to build a row then. My current code checks for exactly that though, because i haven`t limited it for that cases yet. Have to rethink and tinker around how to avoid that cases ...

    Lots of code for this. So my question is still, is there an easier, more elegand method that i miss? Something to improve? I would even be happy with an AGBO solution. Everything working is very welcome
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bejeweled clone, check for one more possible turn

    Okay, this version now takes the corners into account. Means i have what i wanted. But that shouldn`t stop you. As told, i am at searching for the most elegant solution here

    EDIT, meh, still problems. I need to have a second look at it. Misses some valid situations now. Seeems that i need to separate my cornercases a bit more ...
    Attached files Attached files

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bejeweled clone, check for one more possible turn

    This version should work. It worked at least proper the first time for one quick test ...

    EDIT; a final valuetwister was in the way. So i have reuploaded the example. And i have added a example where everything works with an array instead the overlay. Should be faster ...
    Attached files Attached files

Similar Threads

  1. Faster to run always check distance vs always check collision?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 18th September 2013, 08:28 PM
  2. Bejeweled checking for next possible turn problem
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 19th January 2010, 11:14 AM
  3. AGBO problems example - Bejeweled clone
    By Tiles in forum File Archive
    Replies: 6
    Last Post: 18th August 2009, 08:57 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
  •