Beispiel #1
0
def humans():
  PLAYERNAMES = ['Kevin', 'Bob', 'Alice']
  humans = [Player(x) for x in PLAYERNAMES]
  board = Board(humans)
  board.run()
  print board.scoreboard
Beispiel #2
0
 def setUp(self):
     self.names = ['Alice', 'Bob', 'Carl']
     self.players = [Player(x) for x in self.names]
     self.board = Board(self.players)
Beispiel #3
0
def human_v_robot():
  players = [Player('Eric'), RandBot('RandBot')]
  board = Board(players)
  board.run()
  print board.scoreboard
Beispiel #4
0
 def test_played_cards(self):
     self.player = Player('Dudley')
     self.player.cards.pop()
     debug(self.player.played_cards)
     self.assertEquals(self.player.played_cards, [15])
Beispiel #5
0
 def test_held_cards(self):
     self.player = Player('Carl')
     debug(self.player.held_cards)
     self.assertEquals(self.player.held_cards, range(1, 16))
Beispiel #6
0
 def test_create(self):
     self.players = [Player(x) for x in self.names]
     debug((self.players, self.names))
     self.assertEquals(self.names, [x.name for x in self.players])
Beispiel #7
0
    def __init__(self, name):
        """Initialize data."""

        Player.__init__(self, name)
Beispiel #8
0
  def __init__(self, name):
    """Initialize data."""

    Player.__init__(self, name)