Created
August 27, 2023 23:12
-
-
Save masouduut94/1aa1bb8d0a1765630cf62dda64623a6b to your computer and use it in GitHub Desktop.
This file contains 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
from tkinter import (Frame, Canvas, ttk, HORIZONTAL, VERTICAL, IntVar, Scale, Button, Label, PhotoImage, BOTH, LEFT, Y, | |
X, TOP, messagebox) | |
from numpy import int_ | |
from gamestate import GameState | |
from meta import GameMeta | |
from rave_mctsagent import (RaveMctsAgent, LGRMctsAgent, PoolRaveMctsAgent, DecisiveMoveMctsAgent) | |
from ucb1_tuned_mctsagent import UCB1TunedMctsAgent | |
from uct_mcstsagent import UctMctsAgent | |
class Gui: | |
""" | |
This class is built to let the user have a better interaction with | |
game. | |
inputs => | |
root = Tk() => an object which inherits the traits of Tkinter class | |
agent = an object which inherit the traits of mctsagent class. | |
""" | |
agent_type = { | |
1: "UCT", | |
2: "RAVE" # Add this line | |
} | |
AGENTS = { | |
"UCT": UctMctsAgent, | |
"RAVE": RaveMctsAgent, # Add this line | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment