Skip to content

Instantly share code, notes, and snippets.

@masouduut94
Created August 27, 2023 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masouduut94/1aa1bb8d0a1765630cf62dda64623a6b to your computer and use it in GitHub Desktop.
Save masouduut94/1aa1bb8d0a1765630cf62dda64623a6b to your computer and use it in GitHub Desktop.
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