Skip to content

Masynchin/CatBox

Repository files navigation

CatBox

Cats and Boxes and its equation.

Play it here!

What it is?

CatBox is little project based on this picture.

Two cats in box which have funny equation

My motivation was to learn basics of monadic parsers, so I chose PureScript parsec with which I can build interactive game.

Model of the game can be described like:

Equation is either Box or Cat.
Cat is Cat.
Box is one or more Equations.

For this model I created special syntax, which can be described in extended Backus–Naur form like:

equation = box | cat ;
box = "[", equation, { equation }, "]" ;
cat = "😼" ;