import Pkg
Pkg.rm(["Grids", "GridGames"])
Pkg.develop(["Grids", "GridGames"])
using MuZero
using Base.Threads: @spawn
include("game.jl")
include("muzero_config.jl")
config = getconfig(Tac)
actor_pool_size = Threads.nthreads() - 1
config.num_actors = actor_pool_size
@show Threads.nthreads(), config.num_actors
learner = Learner(
    config;
    uuid="b234fc40-a07b-4418-9fbc-adb0278dd4e1",
    dir="~/models/MuZeroModels.jl/tictactoe/",
    play_only=true,
)
play!(learner)