@card-games/engine
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@card-games/engine

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

My awesome module

Install

npm install @card-games/engine

Usage

import { Game, games } from '@card-games/engine';

const game = new Game({ config: games.deuces, playerIds: ['A', 'B', 'C', 'D'] });
game.start();

game.play(['3D']);
game.done();

game.skip();
game.done();

game.skip();
game.done();

game.skip();
game.done();

console.log("Round winner", game.roundWinner); // dependent on the player who had the 3D

API

Packages

Package Description
@card-games/engine

Dependents (0)

Package Sidebar

Install

npm i @card-games/engine

Weekly Downloads

8

Version

1.1.1

License

MIT

Unpacked Size

207 kB

Total Files

59

Last publish

Collaborators

  • jcgertig