title: 3 player card game
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12570162/3-player-card-game-turn-system">3 player card game turn system</a>  </p>
  </blockquote>
  
  
  
  <p>I'm making a GUI 3 player card game (1 human and 2 computers). Each player has 3 cards in hand. In each round there is a dealer and the first player to play a card is the player at the right of the dealer. Each player can only play after the left player has played. (It's the basis of a card game)</p>
  
  <p>After each player had put the 3 cards on the table. The dealer button passes to the player at the right and a new round begin.</p>
  
  <p>I need help to do a function to control the turns, which can see whose turn it is to play. I it is human turn, it waits for input. If it is computer turn, it calls the action function of the calss.</p>
  
  <p>What I have now is a Card class with a Suit and a Value.</p>
  
  <p>A Deck class that is a list of Cards ( this class has a suffle function and a draw card function)</p>
  
  <p>I have a Table class that had a list of cards ( that is where the cards go when a player plays them)</p>
  
  <p>I have a Player class ( the same class is for human and computer player - is this good? )</p>
  
  <p>The Player class have a Hand class ( thats where the 3 cards of the player are )</p>
  
  <p>The Game class has one deck, one table and 3 players.</p>
  
  <p>I have the function that the human is the first to play and moves one card to the table, then the 2 computer players move one card each. This only works if the human player is the first to play. Once the 3 cards of each player are played, begins another round, in this round is not the player but the computer to first play.</p>
  
  <p>I don't have the idea how to make one system to control this. I don't want code, but the idea itself.</p>
  
  <p>Thanks</p>