@swingalytica/gust
v0.1.0
Published
Golf Games in Rust is a collection of golf games implemented in Rust, designed to be compiled to WebAssembly and used in web applications. The library provides a set of tools and utilities for creating interactive golf game boards, handling game logic, an
Downloads
381
Readme
Gust — G[olf Games in R]ust
Gust is a free Open Source golf games engine focused on Golf Training Engagement and Fun.
Gust is in early development. The API is not stable yet and may change without a major version bump.
Installation
npm install @swingalytica/gustGames
- 4Winning — Connect Four on distance zones
- Exact — Consistency and repeatability (coming soon)
- Precision — Get as close to the target as possible (coming soon)
- Sinking Ships — Battleship on the range (coming soon)
Usage
import init, { FourWinning } from "@swingalytica/gust";
await init({ module_or_path: wasmUrl });
const game = new FourWinning();
game.add_player({ id: "1", name: "Player 1", color: "#e74c3c", pos: 0, data: [] });
game.generate_game_board(10, 276, "m");
game.start(new Date().toISOString());
game.click_cell("a1");License
AGPL-3.0 — see LICENSE. Commercial licensing: [email protected]
