@playhearts/gstate_wasm
TypeScript icon, indicating that this package has built-in type declarations

0.5.5 • Public • Published

gstate_wasm

A WebAssembly implementation of a cards game state implemented in C++.

This is a work in progress.

This package provides access to a C++ implementation of the card game Hearts and other related trick-based card games such as Spades.

The pure C++ library is highly optimized for running large numbers of Monte Carlo game simulations to generate training data for a Machine Learning implementation of algoritmmic player "agents".

This NodeJS implementation exists to facilitate a web-based implementation of these card games.

Using this package

See the test code in packages/gstate_wasm_test/src/api.spec.ts, which demonstrates how to use the API. The Typescript iterface is provided in the file gstate_wasm.d.ts.

Package Sidebar

Install

npm i @playhearts/gstate_wasm

Weekly Downloads

1

Version

0.5.5

License

ISC

Unpacked Size

7.16 MB

Total Files

5

Last publish

Collaborators

  • play-hearts-jim