skaat
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.12latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.12
0.3.00
0.2.00
0.1.10
0.1.00
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i skaat

Weekly Downloads

2

Version

0.3.1

License

none

Unpacked Size

219 kB

Total Files

14

Last publish

Collaborators

  • nikku