Popping between classes and menus, OO programming-related
<p>I just asked a question a few hours ago, don't mean to be flooding the forum with my inane questions, just slightly confused:</p>

<p>So I'm working on a card game, I want to make each player's turn basically one method within my player class, I just want to get the first player's turn working, I can then just add a while loop for two players.</p>

<p>At the moment I have a menu, which prints 2 options, drawing from a stock pile and drawing from a discard pile.  I ask the user for a choice of the two.</p>

<p>Then I go into my player class</p>

<pre><code>class player (object):
    def ___init__ (self, hand, current_score, name):
        self.hand = hand
        self.current_score = current_score
        self.name = name

#__str__ here just basically spits out their name

   def take_turn (self):
       menuchoice = menu_draw_choice()
       if menuchoice == '1':
           self.hand = discardpile.pop(0)
#second option in the same format just popping card from the deck
</code></pre>

<p>In my main I have for part:</p>

<pre><code>player.take_turn()
print (player1.hand)
</code></pre>

<p>Basically it just prints out there hand without even taking a choice for menu, it doesn't add anything to there hand, just what it initially was.  What's the problem here?  I have an input for the menu choice which is fed into take_turn as you can see above.  A bit stuck on this one.  I am returning their choice from menu_draw_choice.</p>

<p>On a different question, how would I create a hand for each respective player.  At the moment, I make manual lists with in the program myself (deck1 and deck2) and define them as being equal to blank lists, then feed the cards from the deck into the hand.  Is there  a way I can make a hand for each player, no matter how many players there are, without manually having to define a bunch of hands beforehand then just feeding the deck in?</p>
