Thorn Avery a5f46ca84a | 4 years ago | |
---|---|---|
cardimages | 4 years ago | |
src | 4 years ago | |
.gitignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
evarules.pdf | 4 years ago |
tA's Rules Engine for the Neon Genesis Evangelion Trading Card Game.
Currently only runs in GHCI
:load Leads/Groups.hs ComBoard/Printer.hs ComBoard/Init.hs
import ComBoard.Printer
import ComBoard.Init
To print the representation of the initial board state
printState initBS
hurt
and attract
are currently the only implemented main mechanics
printState $ (hurt Rei Ritsuko)
. (attract Ritsuko Misato)
. (hurt Shinji Gendo)
. (attract Asuka Shinji)
$ initBS
returns:
== BOARD STATE ==
- Groups -
A ~ [ Ritsuko ] <-> BCE
B ~ [ Misato ] <-> AC
C ~ [ Asuka, Shinji ] <-> ABDE
D ~ [ Rei ] <-> CE
E ~ [ Gendo ] <-> ACD
- Downed -
~ Gendo
- GameLog -
Asuka attracts Shinji, both groups are joined
Shinji hurts Gendo, Gendo is downed!
Ritsuko attracts Misato, both groups are joined
Rei hurts Ritsuko, Ritsuko is seperated
=================
Data.List
and Maybe (Data.Either)