manabound
v0.1.0
Published
magick the gathering game engine
Readme
Manabound
magick the gathering game engine
used for game simulations on deck express and possibly other goals (tm)
build for nodejs
wasm-pack build --target nodejsbuild for web
wasm-pack build --target webhow to use (WIP)
import the engine in js
import { Game } from "./pkg/Manabound.js";then initialize the game object
let game = new Game(player_count)Game object functions
play_card(cardid: String)NOT IMPLEMENTED
get_player_data(player_id) -> Player | undefinedreturns undefined if the indexed player doesnt exist
example:
let player_count = 4;
let game = new Game(player_count);
// do exist
for i in player_count{
console.log(game.get_player_data(i));
}
// does not exist
console.log(game.get_player_data(900));
