0.3.1 • Published 5 months ago

skaat v0.3.1

Weekly downloads
29
License
-
Repository
github
Last release
5 months ago

skaat

CI

A Skat game loop.

Can be embedded to build a fully featured Skat application.

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 ]

...

The game loop enforces the rules of Skat and asks you for input as needed. You can provide input via human players or bots.

Related

0.3.0

5 months ago

0.2.0

5 months ago

0.3.1

5 months ago

0.1.0

5 months ago

0.1.1

5 months ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago