lrgp-rs/examples
DeFiDude 4c2d6188f6 chess: add example + binary test vectors (challenge/accept/move/promotion/checkmate/resign/draw_offer)
Hand-crafted msgpack vectors with deterministic 8-byte nonces. They live
in tests/chess_*.bin and are byte-identical to the copies in lrgp-py
under tests/vectors/ — that cross-language fixture is what enforces
wire compatibility between the two reference implementations. msgpack
maps are unordered by spec, so the vector tests assert decode-correctness
(field values match expected) rather than byte-identity round-trip.

The example demonstrates challenge -> accept -> first move with two
LrgpRouter instances. Full-game simulation needs a richer two-peer
state-sync harness than this single-process demo provides.
2026-05-01 15:55:08 -06:00
..
basic_envelope.rs envelope: add optional per-envelope nonce + replay-dedup cache 2026-04-23 21:53:24 -06:00
chess_game.rs chess: add example + binary test vectors (challenge/accept/move/promotion/checkmate/resign/draw_offer) 2026-05-01 15:55:08 -06:00
session_lifecycle.rs LRGP v0.2.0 — Lightweight Reticulum Gaming Protocol 2026-03-13 02:22:44 -06:00
tictactoe_game.rs apps: add Chess game; drop pre-release legacy code paths 2026-05-01 15:50:05 -06:00