added example to readme

This commit is contained in:
Shaun Kerr 2019-05-20 10:51:30 +12:00
parent d6bd174e7b
commit 8850d320db

View File

@ -19,9 +19,26 @@ printState initBS
`conHurt` and `conAttract` are currently the only implemented mechanics `conHurt` and `conAttract` are currently the only implemented mechanics
```haskell ```haskell
printState $ conAttract Shinji Asuka initBS
printState $ conHurt Asuka Gendo $ conAttract Shinji Asuka initBS printState $ conHurt Asuka Gendo $ conAttract Shinji Asuka initBS
``` ```
returns:
```
== BOARD STATE ==
- Groups -
A ~ [ Shinji, Asuka ] <-> BCDE
B ~ [ Rei ] <-> AE
C ~ [ Misato ] <-> AD
D ~ [ Ritsuko ] <-> ACE
E ~ [ Gendo ] <-> ABD
- Downed -
~ Gendo
- GameLog -
Shinji attracted Asuka, Asuka's group joined Shinji's group
Asuka hurt Gendo, Gendo is downed
=================
```
### Dependencies ### Dependencies