Beispiel #1
0
def main():
    print("Welcome to our chess AI! Please select your difficulty:")
    print("Easy: 1")
    print("Medium: 2")
    print("Hard: 3")
    diff = input("")

    depth = 0
    if diff == "1":
        depth = 1
    elif diff == "2":
        depth = 2
    elif diff == "3":
        depth = 3

    demo_human_agent = HumanAgent(True)
    demo_opponent_agent = OrderedAgentTrans(False,
                                            combined,
                                            depth,
                                            load_hh=True)

    demo_game = ChessGame(demo_human_agent, demo_opponent_agent)
    demo_game.play_game(True)
Beispiel #2
0
def main():
    my_game = ChessGame(GreedyAgent, RandAgent)
    my_game.play_game()