Exemplo n.º 1
0
 def __init__ (self, cards) :
     '''
     Give the player random name
     '''
     #possible names
     names = ["Christian", "Erlend", "Ola", "Tommy Woa", "Merethe<3", "Benny", "Janis"]
     
     # set the deck of the player
     self.cards = cards
     self.points = Pointcalc_Poker.calculatePoints(cards)
     
     #set the random name
     self.name = names[randint(0, 6)]
Exemplo n.º 2
0
 def test_testCalculatePoints_flush2(self):
     self.assertEqual(Pointcalc_Poker.calculatePoints(self.pokerCards2), 29)    
Exemplo n.º 3
0
 def test_testCalculatePoints_flush(self):
     self.assertEqual(Pointcalc_Poker.calculatePoints(self.pokerCards), 120000)