Search the Community
Showing results for tags 'cards poker turn-based'.
Found 1 result
Hello all, I'm working on a standard poker game and I have a few questions pertaining to handling the turn based functionality. First, this poker game is heads up so there are only two players. The deck is split evenly (26 cards a player), and at the beginning of the game each player draws 5 cards from their respective decks. On each player's turn, they draw a card from their deck and then play one card from their hand into the play area/discard area. My question is, if this turn based game is played on one device, how would i handle the different views? i.e. once a player draws and places a card, their turn is over and next player draws a card from their deck then plays. This continues until all the cards are played, but obviously you're not supposed to see the other player's cards. As a follow up, how would I handle the same scenario if I wanted to make the game available for multiplayer online? Any help will be greatly appreciated!