def __init__(self): WIN_SETS = [[0,1,2], [3,4,5], [6,7,8], [0,3,6], [1,4,7], [2,5,8], [0,4,8], [2,4,6]] self.board = TTTBoard(9) self.rules = TTTGameRules(WIN_SETS) self.io = TerminalTTTIO() self.ai = ComputerPlayer()
def setUp(self): self.comp_player = ComputerPlayer() self.board = TestBoard(9) self.ttt_rules = TTTGameRules(WIN_SETS) self.X = self.board.valid_teams_list[0] self.O = self.board.valid_teams_list[1]
def setUp(self): self.rules = TTTGameRules(WIN_SETS) self.board = TestBoard(9) self.X = self.board.valid_teams_list[0] self.O = self.board.valid_teams_list[1]