示例#1
0
 def __init__(self, engine1, engine2, time_control, variant='chess', games=1, start_fens=None):
     self.two_boards = sf.two_boards(variant)
     self.engines = [Engine([engine1]), Engine([engine2])]
     self.board2_engines = [Engine([engine1]), Engine([engine2])] if self.two_boards else None
     self.time_control = time_control
     self.variant = variant
     self.games = games
     self.start_fens = start_fens if start_fens else [sf.start_fen(variant)]
     self.score = [0, 0, 0]
示例#2
0
 def test_two_boards(self):
     self.assertFalse(sf.two_boards("chess"))
     self.assertTrue(sf.two_boards("bughouse"))