• Content Count

  • Joined

  • Last visited

  1. Thanks for the advice Squilibob! I'll definitely incorporate these changes.
  2. Hello all, I've been working diligently on my card game and have encountered two issues. This first issue stems around selecting a card in the player's hand. When I start the game, the code works as intended (I can select any card in my hand by clicking it. This then moves the card up 20 pixels to signify that it has been selected, then I can click one of the play areas which moves the card to the appropriate area). After the move is completed, the computer places a card in the area, and then it is the player's turn again. Once it's my turn, my code doesn't work anymore. I can only move my last card in my hand. Secondly, whenever the computer tries to play a card in the second area an error is thrown. I'm not sure why it does this because it plays in the other three areas fine (exact same code). I've been wracking my brain for 48 hours and could use some help. Here is a link to my repo: I'd appreciate any help. Thanks.
  3. Thanks for the advice Skeptron. I'm a complete noob at this. I would like it to be cheat proof, and thus per your recommendation would need a server. How the heck would I go about this? Can you recommend any resources.
  4. 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!