
from main import MiniMax
from main import GameState

class ConsoleTester:

  def __init__(self, agent):
    self.agent = agent

  def run(self, board):
    print("Running")
    from judge import printGame
    v = int(input("Choose the column [0-6]: "))
    print("Selected: ", v)
    return v

class MiniMaxTester:

  def __init__(self, agent):
    self.minmax = MiniMax(agent)
    self.agent = agent

  def run(self, board):
    gameState = GameState(board)
    opt = self.minmax.maxValue(gameState, 1, self.agent, float("-inf"), float("inf"))
    print("PC played: " + str(opt))
    return opt

if __name__ == '__main__':
    from judge import main
    main()

195ccb0f69531ed72aa5e9e2ed3e231ef6f12c54
<mask token>


class ConsoleTester:
    <mask token>
    <mask token>


class MiniMaxTester:

    def __init__(self, agent):
        self.minmax = MiniMax(agent)
        self.agent = agent

    def run(self, board):
        gameState = GameState(board)
        opt = self.minmax.maxValue(gameState, 1, self.agent, float('-inf'),
            float('inf'))
        print('PC played: ' + str(opt))
        return opt


<mask token>

<mask token>


class ConsoleTester:

    def __init__(self, agent):
        self.agent = agent
    <mask token>


class MiniMaxTester:

    def __init__(self, agent):
        self.minmax = MiniMax(agent)
        self.agent = agent

    def run(self, board):
        gameState = GameState(board)
        opt = self.minmax.maxValue(gameState, 1, self.agent, float('-inf'),
            float('inf'))
        print('PC played: ' + str(opt))
        return opt


<mask token>

<mask token>


class ConsoleTester:

    def __init__(self, agent):
        self.agent = agent

    def run(self, board):
        print('Running')
        from judge import printGame
        v = int(input('Choose the column [0-6]: '))
        print('Selected: ', v)
        return v


class MiniMaxTester:

    def __init__(self, agent):
        self.minmax = MiniMax(agent)
        self.agent = agent

    def run(self, board):
        gameState = GameState(board)
        opt = self.minmax.maxValue(gameState, 1, self.agent, float('-inf'),
            float('inf'))
        print('PC played: ' + str(opt))
        return opt


if __name__ == '__main__':
    from judge import main
    main()

from main import MiniMax
from main import GameState


class ConsoleTester:

    def __init__(self, agent):
        self.agent = agent

    def run(self, board):
        print('Running')
        from judge import printGame
        v = int(input('Choose the column [0-6]: '))
        print('Selected: ', v)
        return v


class MiniMaxTester:

    def __init__(self, agent):
        self.minmax = MiniMax(agent)
        self.agent = agent

    def run(self, board):
        gameState = GameState(board)
        opt = self.minmax.maxValue(gameState, 1, self.agent, float('-inf'),
            float('inf'))
        print('PC played: ' + str(opt))
        return opt


if __name__ == '__main__':
    from judge import main
    main()


from main import MiniMax
from main import GameState

class ConsoleTester:

  def __init__(self, agent):
    self.agent = agent

  def run(self, board):
    print("Running")
    from judge import printGame
    v = int(input("Choose the column [0-6]: "))
    print("Selected: ", v)
    return v

class MiniMaxTester:

  def __init__(self, agent):
    self.minmax = MiniMax(agent)
    self.agent = agent

  def run(self, board):
    gameState = GameState(board)
    opt = self.minmax.maxValue(gameState, 1, self.agent, float("-inf"), float("inf"))
    print("PC played: " + str(opt))
    return opt

if __name__ == '__main__':
    from judge import main
    main()
