Пример #1
0
 def test_dealer_display(self):
     dealer_1_text = """Dealer Configuration:
 Watering Hole: 10
 Deck: [[2, carnivore], [3, scavenger]]
 Players:
     Player 1:
         Species ([Food, Body, Population, Traits, Fat-food]):
             [3, 3, 4, [], None]
             [1, 3, 3, [], None]
             [3, 3, 4, [], None]
         Bag: 2
         Hand: [[2, carnivore], [3, scavenger]]
     Player 2:
         Species ([Food, Body, Population, Traits, Fat-food]):
             [4, 4, 4, [fat-tissue], 3]
         Bag: 10
         Hand: []
     Player 3:
         Species ([Food, Body, Population, Traits, Fat-food]):
             [4, 4, 4, [], None]
             [4, 3, 4, [], None]
             [4, 4, 4, [], None]
         Bag: 4
         Hand: [[3, foraging]]"""
     self.assertEquals(gui.render_dealer(self.dealer_1), dealer_1_text)
Пример #2
0
 def display(self):
     """
     Displays this Dealer's current configuration in a graphical window
     """
     text = gui.render_dealer(self)
     gui.display(text)
Пример #3
0
 def test_display(self):
     gui.display(gui.render_dealer(self.dealer_1))
     gui.display(gui.render_player(self.player_1))