4 of Aces etc?

  • Hello everyone,

    I have a difficult task for me and i do not know how to start to solve it.

    Its a multiplayer card game.

    Player take 8 cards and i want to recognize when a player have 4 same cards in hand, and if a player have 3 in a row , 4 in a row or 5 in a row all from the same kind.

    Cards have a variable called "play" wich is represent the animation frame.

    Kinds ar 4 -> hearts , clubs , diamonds and spades

    and cards are 7 8 9 10 J Q K A

    in total 32 cards.

    card.play = 0 is the 7 of hearts

    card.play = 1 is the 8 of hearts

    card.play = 8 is the 7 of clubs

    4 of a kind is only for 9 10 J Q K and A

    And a trick here is that you can not take a 3 in a row inside a 5 in a row 7 8 9 10 J is 5 in a row but you cannot use this cards for make and 4 in a row or 3 in a row.

    Also you cannot use a card from 4 of a kind to create 3 in a row etc.

    Each card can be used once.

    So, Im looking for a direction how to start building this.

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)