File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- from squadro.state.evaluators.ml import ModelConfigfrom squadro.agents.montecarlo_agent import MonteCarloDeepQLearningAgent# Squadro
2-
3-
41[ ![ Release] ( https://img.shields.io/pypi/v/squadro?label=Release&style=flat-square )] ( https://pypi.org/project/squadro/ )
52[ ![ CI] ( https://github.com/MartinBraquet/squadro/actions/workflows/ci.yml/badge.svg )] ( https://github.com/MartinBraquet/squadro/actions/workflows/ci.yml/badge.svg )
63[ ![ CD] ( https://github.com/MartinBraquet/squadro/actions/workflows/cd.yml/badge.svg )] ( https://github.com/MartinBraquet/squadro/actions/workflows/cd.yml/badge.svg )
@@ -221,7 +218,10 @@ For three pawns, it should take a few hours to train on a typical CPU (8–16 co
221218Once done, one can use the play against the AI agent (setting the same value for `model_path` ):
222219
223220```python
224- agent = squadro.MonteCarloDeepQLearningAgent(model_path = ' path/to/model' )
221+ agent = squadro.MonteCarloDeepQLearningAgent(
222+ model_path = ' path/to/model' ,
223+ max_time_per_move = 1 .,
224+ )
225225squadro.GamePlay(agent_1 = agent).run()
226226```
227227
You can’t perform that action at this time.
0 commit comments