Skip to content

Commit 67fef9b

Browse files
Update README.md
1 parent a00e2e3 commit 67fef9b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,15 @@ Those models are all very lightweight, making them convenient even for machines
210210
To use those models, simply instantiate the corresponding agent **without** passing the `model_path` argument (this is how the package makes the distinction between loading an online model and creating a new model).
211211
212212
```python
213-
import squadro
214-
215213
dql = squadro.MonteCarloDeepQLearningAgent() # Deep Q-Learning Opponent
216-
ql = squadro.MonteCarloQLearningAgent() # Q-Learning Opponent
217-
218214
squadro.GamePlay(agent_1=dql).run()
219215
```
220216
217+
```python
218+
ql = squadro.MonteCarloQLearningAgent() # Q-Learning Opponent
219+
squadro.GamePlay(agent_1=ql, n_pawns=3).run()
220+
```
221+
221222
### Training
222223
223224
One can train a model using reinforcement learning (RL) algorithms. Currently, Squadro supports two such algorithms:

0 commit comments

Comments
 (0)