Add chess games over channel data
Play and watch chess on a channel via the Chess games entry in the channel overflow menu. Moves travel as GRP_DATA packets (type 0x0100) carrying the full position and a hash-chain value for authentication. Includes translations for all locales.
This commit is contained in:
1 parent
9ac915bdf2
commit
185b026a0d
66 files changed
+15314
-25
No files matched your search
@@ -282,3 +282,5 @@ Reactions use `r:<four-hex message hash>:<two-hex emoji index>`. Channel replies
|
||||
Transport-routed raw packets include four transport-code bytes before packed path metadata. For transport floods, the app matches the first two code bytes against locally known region candidates using HMAC-SHA256 over `[payloadType][payload]`. Region scope keys are the first 16 bytes of SHA256 of `#<region>`. The radio's default flood scope is also a candidate, matched on the key the radio reports (it may have been set by another client). The name itself is not carried as plain text. Unknown or ambiguous matches remain null; see [regions](regions.md).
|
||||
|
||||
Image chunks use `CMD_SEND_CHANNEL_DATA` (62), `RESP_CODE_CHANNEL_DATA_RECV` (27), and application data type `0xAE1C`. The framing, capacities, metadata byte, and XOR recovery algorithm are defined in [image_chunk_transport.dart](../lib/services/image_chunk_transport.dart), which is the source of truth. See [image messages](image-messages.md) for user requirements and limitations.
|
||||
|
||||
Chess games use the same command and response with data type `0x0100`, which is registered to MeshCore Open in the firmware's `docs/number_allocations.md`. The high nibble of the first payload byte names the app feature (`1` = chess v1), so other games can share the data type. The packet layouts are in [chess_packets.dart](../lib/games/chess/chess_packets.dart) and [games](games.md#how-moves-are-sent).
|
||||
Reference in new issue
Block a user