by overhero · 5y ago · 0 comments
blocks _ _ True = True
blocks Tile{isWater} floats _ = not isWater || floats
blocks Creature{} _ _ = True
blocks Fire{} _ _ = False
blocks Wall{} _ _ = True
it does not get much closer to truth-tables, if you ask meNo comments yet.