evac/README.md

55 lines
1.1 KiB
Markdown
Raw Normal View History

2019-05-19 18:45:45 -04:00
# EVAC
tA's Rules Engine for the Neon Genesis Evangelion Trading Card Game.
## Getting Started
Currently only runs in GHCI
2019-05-19 18:46:44 -04:00
```haskell
:load Leads/Groups.hs ComBoard/Printer.hs ComBoard/Init.hs
import ComBoard.Printer
import ComBoard.Init
2019-05-19 18:45:45 -04:00
```
To print the representation of the initial board state
2019-05-19 18:46:44 -04:00
```haskell
2019-05-19 18:45:45 -04:00
printState initBS
```
`hurt` and `attract` are currently the only implemented main mechanics
2019-05-19 18:46:44 -04:00
```haskell
2019-05-21 21:15:21 -04:00
printState $ (hurt Rei Ritsuko)
. (attract Ritsuko Misato)
. (hurt Shinji Gendo)
. (attract Asuka Shinji)
$ initBS
2019-05-19 18:45:45 -04:00
```
2019-05-19 18:51:30 -04:00
returns:
```plaintext
== BOARD STATE ==
2019-05-19 18:51:30 -04:00
- Groups -
2019-05-21 21:24:16 -04:00
A ~ [ Ritsuko ] <-> BCE
B ~ [ Misato ] <-> AC
C ~ [ Asuka, Shinji ] <-> ABDE
D ~ [ Rei ] <-> CE
E ~ [ Gendo ] <-> ACD
2019-05-19 18:51:30 -04:00
- Downed -
~ Gendo
- GameLog -
2019-05-21 21:24:16 -04:00
Asuka attracts Shinji, both groups are joined
Shinji hurts Gendo, Gendo is downed!
Ritsuko attracts Misato, both groups are joined
2019-05-21 21:24:16 -04:00
Rei hurts Ritsuko, Ritsuko is seperated
=================
2019-05-19 18:51:30 -04:00
```
2019-05-19 18:45:45 -04:00
### Dependencies
`Data.List` and `Maybe (Data.Either)`
2019-05-19 18:45:45 -04:00
## Authors
* **Shaun Kerr** - [tA](https://git.lain.church/tA)