def print_result(self): if is_game_over(self.board)[1] == _MACHINE_SYMBOL: print("player " + _MACHINE + " win!") elif is_game_over(self.board)[1] == _PLAYER_SYMBOL: print("player " + _PLAYER + " win") else: print("Empate!")
def print_result(self): if (alpha_beta.is_game_over(self.board)[1] is None): print("draw") else: print( f"{_PLAYER if alpha_beta.is_game_over(self.board)[1] == _PLAYER_SYMBOL else _MACHINE} wins!" )
def print_result(self): if is_game_over(self.board)[1] is None: Art = text2art("draw", "random") print(Art) else: Art = text2art(f'{self.winner} wins', "random") print(Art)
def is_over(self): return is_game_over(self.board)[0]
def is_over(self): return alpha_beta.is_game_over(self.board)[0]