title: Python Simple Card Game to Learn Classes
body: <p>I am trying to create a simple card game to better understand OOP and classes. </p>
  
  <p>The game is as follows: Two cards are dealt from a deck. Then a third card is dealt. If the third card is between the first two cards, then the player wins. If the third card is equal to either of the first two cards, or is outside of the set, then the player loses. </p>
  
  <p>This is what I have so far:</p>
  
  <pre class="lang-python prettyprint-override"><code>class Deck(object):
      def __init__(self):
          self.deck = []
  
      def PopulateDeck(self):
          suits = ["Hearts", "Diamonds", "Clubs", "Spades"]
          for suit in suits:
              for rank in range(2, 15):
                  if rank == 11:
                      value = "Jack"
                  elif rank == 12:
                      value = "Queen"
                  elif rank == 13:
                      value = "King"
                  elif rank == 14:
                      value = "Ace"
  
                  self.deck.append(str(value) + " of " + suit)
  
  class Card(object):
      def __init__(self, rank, value):
          self.rank = rank
          self.value = value
          self.card = self.rank + self.value
  </code></pre>
  
  <p>I am having a difficult time with classes and OOP, and I'm not sure if this is a good start, or where I should go next. Much of this was created by reading other sources and examples. Can anyone please provide advice on what other classes I may want to make to run my game, and how those classes may interact with/inherit from each other? Thank you.</p>