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
|
2019-05-21 21:06:18 -04:00
|
|
|
: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
|
|
|
|
```
|
|
|
|
|
2019-05-21 21:06:18 -04:00
|
|
|
`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)
|
2019-05-21 21:06:18 -04:00
|
|
|
. (hurt Shinji Gendo)
|
|
|
|
. (attract Asuka Shinji)
|
|
|
|
$ initBS
|
2019-05-19 18:45:45 -04:00
|
|
|
```
|
2019-05-19 18:51:30 -04:00
|
|
|
returns:
|
|
|
|
|
2019-05-19 18:54:41 -04:00
|
|
|
```plaintext
|
2019-05-21 21:06:18 -04:00
|
|
|
== 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
|
2019-05-21 21:06:18 -04:00
|
|
|
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:54:41 -04:00
|
|
|
=================
|
2019-05-19 18:51:30 -04:00
|
|
|
```
|
|
|
|
|
2019-05-19 18:45:45 -04:00
|
|
|
### Dependencies
|
|
|
|
|
2019-05-21 21:06:18 -04:00
|
|
|
`Data.List` and `Maybe (Data.Either)`
|
2019-05-19 18:45:45 -04:00
|
|
|
|
|
|
|
## Authors
|
|
|
|
|
|
|
|
* **Shaun Kerr** - [tA](https://git.lain.church/tA)
|