I like the attribute-based approach to wasm bindings in rust, it keeps it clean and to one file, and refreshing how you just have a plain HTML file and just instantiate the module with
import init, { Checkers } from "./pkg/checkers.js";
I wish the Rust web frameworks were this simple. I mean, they're not insane, but they're just really complex due to all of the use cases they support. Dioxus needs a "lite" mode.
Hello, original author here. I was delightedly surprised to see this game got attention. I believe I referenced https://wcdf.net/rules.htm when writing the game. The game has been updated. If a piece is clicked and has no moves, pieces with moves are briefly highlighted.
import init, { Checkers } from "./pkg/checkers.js";
:)