def __init__(self):
     """The current implementation of the BreakthroughTournamentPlayer
     creates a PruningPlayer instance with depth limit 4 and the
     breakthroughBetterEval heuristic. You are welcome to re-implement this
     (for example, calling an additional heuristic), subject to the rules
     outlined above.
     """
     self.name = "username1-username2"  #TODO: put your username(s) here
     self.player = PruningPlayer(breakthroughBetterEval, 4)
class BreakthroughTournamentPlayer:
    """This is your submission to the Breakthrough tournament.

    The Breakthrough tournament focuses on designing board evaluation
    heuristics. All agents submitted to this tournament must run min/max search
    with alpha/beta pruning and a depth limit of 4. Your goal for this
    tournament is to design the best possible static evaluation function to
    help your agent make good decisions with a limited search depth. Static
    evaluation functions must be deterministic and must not perform additional
    search.

    The tournament will use a 7-row, 5-column board. A time limit of 10 seconds
    will be enforced on each move; if the time limit is exceeded a random move
    will be played. Each pair of teams will play two games, alternating which
    agent moves first. If needed, other board sizes may be used to break ties.

    The Breakthrough tournament is opt-out. If you do not want to participate,
    please see Piazza for instructions on opting out."""
    def __init__(self):
        """The current implementation of the BreakthroughTournamentPlayer
        creates a PruningPlayer instance with depth limit 4 and the
        breakthroughBetterEval heuristic. You are welcome to re-implement this
        (for example, calling an additional heuristic), subject to the rules
        outlined above.
        """
        self.name = "username1-username2"  #TODO: put your username(s) here
        self.player = PruningPlayer(breakthroughBetterEval, 4)

    def getMove(self, game):
        return self.player.getMove()
Example #3
0
class MancalaTournamentPlayer:
    """Default implementation for the Mancala tournament."""
    def __init__(self):
        self.name = "cli2-yzhang1"
        self.player = PruningPlayer(mancalaBasicEval, 1)

    def getMove(self, game):
        return self.player.getMove(game)
Example #4
0
class BreakthroughTournamentPlayer:
    """Default implementation for the Breakthrough tournament."""
    def __init__(self):
        self.name = "cli2-yzhang1"
        self.player = PruningPlayer(breakthroughBasicEval, 1)

    def getMove(self, game):
        return self.player.getMove(game)
Example #5
0
 def __init__(self):
     self.name = "cli2-yzhang1"
     self.player = PruningPlayer(mancalaBasicEval, 1)
Example #6
0
 def __init__(self):
     self.name = "cli2-yzhang1"
     self.player = PruningPlayer(breakthroughBasicEval, 1)