skaat

A Skat game loop

Usage no npm install needed!

<script type="module">
  import skaat from 'https://cdn.skypack.dev/skaat';
</script>

README

skaat

CI Status

A Skat game loop.

Can be embedded to build a full featured Skat application: :arrow_right: Demo.

Installation

npm install skaat

Usage

import { Game, Clubs } from 'skaat';

const game = new Game();

game.next('start'); // 'ask-bid', 2
game.next('pass', 2); // 'ask-bid', 0
game.next('bid', 0, 24); // 'ask-ack', 1
game.next('pass', 1); // 'ask-declare', 0
game.next('declare', 0, { suit: Clubs }); // 'ask-card', 1

...