fp-tshrk
is a Sharks with Lasers™ bot that I made to familiarize myself with fp-ts.
Note: Most of the shark logic is in its
brain
. Seebrain/types.ts
for a type-level overview.
SharkSee
, SharkThink
, SharkDo
.
The shark is born with some amount of SharkKnowledge
. Using that, it
See
s theSituation
Think
s of whatManeuver
to do next, and thenDo
es it.
To extend the sharks capabilities, implement a new Maneuver
! Simply add a new ManeuverName
in brain/types.ts
, and let the compiler guide you from there.
You will need to edit the arenaId
and sharkId
in config.ts
.
TODO: docker-ize!