This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random, numpy as np, sys | |
trueFalseArr = [True, False] # used for randomly choosing who goes first | |
# Return tuple of (winner or '' string if no winner, bool value for if game is tied) | |
def checkGameState(board): | |
gameIsNotTied = True | |
winner = '' | |
# check horizontal wins |