Example #1
0
print('2: Brain starting')
print('3: Average long')
print('4: Really Long')
print('5: Chuck norris long')

depth = input('Well? ')
depth = int(depth) * 2

game = GameState()
game.initialize()
while (True):
    coordinates = [1]
    while (len(coordinates) != 2):
        if (len(game.validMoves()) == 0):
            print("")
            if (game.stateValue() < 0):
                print('Human Won!!')
            elif (game.stateValue() > 0):
                print('Computer Won!!')
            else:
                print('Its a draw!')
            sys.exit()
        if (game.getPlayerOneTurn()):
            game.printGameState()
            coordinates = input(
                'Where do you want to place your brick? (row col): \n').split(
                    ' ')
            while len(coordinates) is not 2:
                print("Input two values")
                coordinates = input(
                    'Where do you want to place your brick? (row col): \n'