示例#1
0
def robots():
  bots = [RandBot('Alice'), PatternBot('Bob'), RandBot('Carl'),
          KmgOneBot('Ken')]
  board = Board(bots, 30)
  board.run() 
  print board.scoreboard
示例#2
0
def human_v_robot():
  players = [Player('Eric'), RandBot('RandBot')]
  board = Board(players)
  board.run()
  print board.scoreboard
示例#3
0
def humans():
  PLAYERNAMES = ['Kevin', 'Bob', 'Alice']
  humans = [Player(x) for x in PLAYERNAMES]
  board = Board(humans)
  board.run()
  print board.scoreboard
示例#4
0
文件: test_raj.py 项目: kmggh/rajbots
 def setUp(self):
     self.names = ['Alice', 'Bob', 'Carl']
     self.players = [RandBot(x) for x in self.names]
     self.board = Board(self.players)