Engine for the card game wiezen, written in TypeScript, tested with Jasmine