Crates.io | twentyfour |
lib.rs | twentyfour |
version | 0.1.0 |
source | src |
created_at | 2023-02-28 18:31:28.569029 |
updated_at | 2023-02-28 18:31:28.569029 |
description | A solver for the 24 card game |
homepage | https://github.com/allan2/24 |
repository | https://github.com/allan2/24 |
max_upload_size | |
id | 797388 |
size | 28,112 |
A solver for the 24 card game. https://ayz.ai/24
The objective of the game is to find a way to combine four positive integers using arithmetic operations to obtain a target (the number 24). Exponentiation is supported.
Ops
in Card
solve24
across WebAssembly ABITo compile twentyfour-wasm for the frontend, run the following from the project root:
cargo build -p twentyfour-wasm --release --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/release/twentyfour_wasm.wasm --out-dir frontend/pkg
cd frontend
pnpm build
The solver itself was based on dbkaplun/solve24-rs.
PRs welcome!