Skip to content

Commit

Permalink
Export the most important functions to the top-level namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed May 27, 2018
1 parent ad9c338 commit 1a747e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,24 @@ pip install puissance4
- Pour jouer vous-même contre une intelligence artificielle UCT d'un bon niveau, importez le paquet PyPI depuis Python :

```python
import puissance4.play
import puissance4

# Play an interactive game versus UCT AI
puissance4.play.play_now()
puissance4.play_now()
```

#### Des parties IA contre IA

- (facultatif) Pour calibrer les paramètres de l'IA, importez le paquet PyPI depuis Python :

```python
import puissance4.training
import puissance4

# Either 'Random', 'MC', or 'UCT'
trainer_choice = 'MC'

# Play 200 games in a setting UCT AI vs. trainer AI
puissance4.training.prepare_and_train(trainer_choice=trainer_choice, num_parties_jouees=200)
puissance4.prepare_and_train(trainer_choice=trainer_choice, num_parties_jouees=200)
```

## Introduction
Expand Down
2 changes: 2 additions & 0 deletions puissance4/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .play import play_now
from .training import prepare_and_train

0 comments on commit 1a747e0

Please sign in to comment.