Results 1 to 7 of 7
Like Tree1Likes
  • 1 Post By gimbal2

Thread: need help I have problem with game algorithm

  1. #1
    Tlipre is offline Member
    Join Date
    Aug 2013
    Posts
    4
    Rep Power
    0

    Default need help I have problem with game algorithm

    need help I have problem with game algorithm-diamonddash1.png
    I want to create games like this. And now I can check nearly of block click by user.(I use algorithm name "Floodfill")
    But when it disappear I can't check which block must fall replace that block.

    If you don't understand my explanation. Please see the picture on top. when I click purple block at (1,2). It will be floodfill to block at (1,3).
    And all of them will be disappear. BUT ! I can't coding to dismount the blue block add(1,1) to (1,3).

    Ps. I come from country where don't use English is Official language.
    If I use wrong word or wrong tense. Please provide me a correct word.

    Thank you

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

    Default Re: need help I have problem with game algorithm

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    kimi is offline Member
    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0

    Default Re: need help I have problem with game algorithm

    KevinWorkman, do you manually check each post for cross posting or is it done automatically?

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,098
    Rep Power
    6

    Default Re: need help I have problem with game algorithm

    Quote Originally Posted by kimi View Post
    KevinWorkman, do you manually check each post for cross posting or is it done automatically?
    Why do you think those are the only two options? What do you think about: Kevin posts to multiple forums and spots it?
    DarrylBurke likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    kimi is offline Member
    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0

    Default Re: need help I have problem with game algorithm

    Oh that would be lame

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,098
    Rep Power
    6

    Default Re: need help I have problem with game algorithm

    Quote Originally Posted by kimi View Post
    Oh that would be lame
    Its lame to crosspost and not mention it.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: need help I have problem with game algorithm

    Read up on the MVC pattern. This is a classic case where it would be useful. A game like this would likely have a model consisting of a two-dimensional array representing the playing board. The elements of the array would be of a type that has properties like color. Your algorithms would operate on the array, and then the UI would update to reflect the content of the array.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Algorithm problem.
    By luisx86 in forum New To Java
    Replies: 2
    Last Post: 03-25-2013, 01:43 AM
  2. An algorithm problem
    By bMorgan in forum New To Java
    Replies: 1
    Last Post: 01-27-2011, 09:53 AM
  3. Help with game algorithm
    By timkd127 in forum Advanced Java
    Replies: 2
    Last Post: 02-26-2010, 10:41 AM
  4. Alpha-beta algorithm, game tree
    By ljaf_1985 in forum New To Java
    Replies: 0
    Last Post: 03-28-2008, 04:21 PM
  5. Algorithm problem
    By Marcus in forum Advanced Java
    Replies: 2
    Last Post: 07-01-2007, 01:37 AM

Posting Permissions

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