@card-games/engine
v1.1.1
Published
A template for creating npm packages using TypeScript and VSCode
Downloads
16
Maintainers
Readme
@card-games/engine
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 | |