Skip to content

Commit

Permalink
Merge pull request #8 from healeycodes/bug/readme-run
Browse files Browse the repository at this point in the history
Start to add better instructions on basic usage
  • Loading branch information
healeycodes committed Feb 20, 2021
2 parents 3c5249f + e2ebbaf commit abe8973
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,31 @@ The engine file required by `lichess-bot` may be generated using [pyinstaller](h

<br>

## Development
## Use it!

Start the engine with:

`python run main.py`
`python main.py`

Give it a fen:

`position fen rnbqk1nr/p1ppppbp/1p4p1/8/2P5/2Q5/PP1PPPPP/RNB1KBNR b KQkq - 0 1`

Get a move:

`go`

<hr>

```bash
$ python main.py
position fen rnbqk1nr/p1ppppbp/1p4p1/8/2P5/2Q5/PP1PPPPP/RNB1KBNR b KQkq - 0 1
>>> position fen rnbqk1nr/p1ppppbp/1p4p1/8/2P5/2Q5/PP1PPPPP/RNB1KBNR b KQkq - 0 1
go
>>> go
>>> {'positions': 9128, 'time': 1.6894989013671875}
bestmove g7c3
```

<br>

Expand Down

0 comments on commit abe8973

Please sign in to comment.