retro-bruno's Recent Forum Activity

  • First, you can, for example, copy the 5 values of the hand in an array of 5x2 values and sort them from the higher to the lower cards value.

    Now, check them in this order :

    Check in the array if the 5 cards have the same color value first.

    • In this case, check the cards value : 14,13,12,11,10 is a Royal Flush.
    • ELSE 13,12,11,10,9 or 12,11,10,9,8 or 11,10,9,8,7 are Straight Flush.
    • ELSE the other case is a Flush.

    ELSE If the 5 cards does not have the same color value, check the number of sames cards value in the array.

    If 4 are the sames, it's Four of a Kind.

    ELSE if 3 are the sames, check if the two others are the sames together, if yes, it's a FullHouse, ELSE it's Three of a Kind.

    ELSE if 2 are the sames, check if the three others are the sames together, if yes, it's a FullHouse, ELSE if there is another pair, it's TWO PAIR, ELSE it's one pair.

    ELSE check for a Straight.

    ELSE if no cards are the same, check for the Higher Card.

    If you have multiple players in your game, don't forget, in some cases, to compare others cards next.

    Example :

    If two players have one pair of 7, check the Higher next card to see who win.

    I don't know what's happens if two players have the exact same hand... lol

    http://en.wikipedia.org/wiki/List_of_poker_hands

  • And if you use 32 cards, just forget to assign values from 2 to 6.

    Also, you can set the 1 value to 14, as it is the higher value in poker...

  • Why not assigning to each card two constants, one for the color (1 to 4) and one for the value (1 to 13 with King = 13) ?

  • Hi,

    I have no sound on ios 8+ on a game i'm working on.

    I've read that i should use first a "tap event".

    I've done this but without success.

    Any idea ?

    Also, on ios 7+, the loader crash.

    I've tested without webgl, it's the same.

    This is the game :

    http://www.retro-bruno.com/html5/pacman/pacman.html

  • Thanks a lot volkiller730

  • Hello world

    I'm not sure i understood entirely the function of the layouts, and how a layout is assigned to an events sheet.

    Is a layout equivalent to a game level ?

    If yes, how do i assign multiples events sheets to multiples new layouts ? (One by one)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi,

    My name is Bruno.

    I'm a schizophrenic disabled Freeware's games programmer.

    I use multiples tools, trying to spend my time.

    I'm also a music composer, and i'm learning to draw.

    It's useful to be a better pixel artist.

    I live in Corsica (French island in the south of France).

    I can't work on my games all the time, this is why i work alone.

    But i like to receive good advices when i create a Freeware.

retro-bruno's avatar

retro-bruno

Member since 31 Mar, 2015

None one is following retro-bruno yet!

Connect with retro-bruno

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies