Skip to content

andreasmwenzel/ts-card-games

Repository files navigation

ts-card-games

Hearts, Pinochle and more in typescript

Features

  • Cards
  • Decks
  • Players
  • Games
    • Hearts
    • Pinochle

Examples

const game = new Hearts({name: "Hearts1"});

const p1 = game.addPlayer("joe");
const p2 = game.addPlayer("jim");
const p3 = game.addPlayer({name:"jess"});
const p4 = game.addPlayer("jules");

p1.setReady(true);
p2.setReady(true);
p3.setReady(true);
p4.setReady(true);

Development

Build

npm run build

Test

npm run test

Todo

Finish building out game logic for Hearts and Pinochle


About

Hearts, Pinochle and more in a TS

Resources

Stars

Watchers

Forks

Packages

No packages published