+ player_bits = 0
+ for bit in bits:
+ player_bits |= bit
+ return Player(player_bits, None)
+
+ def make_board(self, player_bits=None, locations=None):
+ if locations is None:
+ locations = [{'actions': []}]
+ board = GameBoard.new_game(locations)
+ if player_bits is not None:
+ board.player.bits.set_bits(player_bits)
+ return board