@creativenull/pokerjs
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

Poker.js

A simple card poker library written in TypeScript.

Installation

npm install @creativenull/pokerjs

Deno

import { Poker } from "jsr:@creativenull/pokerjs@2";

Test

npm run test

Usage

import { Poker } from "@creativenull/pokerjs";

const poker = new Poker();
const player1 = { id: "player1", hand: poker.getPlayerHand() };
const player2 = { id: "player2", hand: poker.getPlayerHand() };

const winner = poker.winner([player1, player2]);
console.log(winner);

Package Sidebar

Install

npm i @creativenull/pokerjs

Weekly Downloads

2

Version

2.2.0

License

MIT

Unpacked Size

34.8 kB

Total Files

12

Last publish

Collaborators

  • creativenull