Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kibitz
command
Command kibitz is the relay server.
|
Command kibitz is the relay server. |
|
kibitz-wasm
command
Native stub so `go build ./...` and `go vet ./...` succeed on the host — the real entrypoint is main.go, built only under GOOS=js GOARCH=wasm.
|
Native stub so `go build ./...` and `go vet ./...` succeed on the host — the real entrypoint is main.go, built only under GOOS=js GOARCH=wasm. |
|
internal
|
|
|
crypto
Package crypto is kibitz's security boundary.
|
Package crypto is kibitz's security boundary. |
|
fairdice
Package fairdice implements commit-reveal dice between untrusting peers.
|
Package fairdice implements commit-reveal dice between untrusting peers. |
|
phrase
Package phrase generates croc-style code phrases and derives session IDs from them.
|
Package phrase generates croc-style code phrases and derives session IDs from them. |
|
relay
Package relay implements the kibitz relay server: a blind frame forwarder.
|
Package relay implements the kibitz relay server: a blind frame forwarder. |
|
service
Package service defines the layered-service abstraction and the mux that routes decrypted envelopes to services.
|
Package service defines the layered-service abstraction and the mux that routes decrypted envelopes to services. |
|
service/backgammon
Backgammon rules engine — pure logic, no protocol, no I/O. Hand-rolled because no maintained Go backgammon library exists.
|
Backgammon rules engine — pure logic, no protocol, no I/O. Hand-rolled because no maintained Go backgammon library exists. |
|
service/battleship
The battleship service — kibitz's flagship: hidden ship placement with NO trusted server anywhere.
|
The battleship service — kibitz's flagship: hidden ship placement with NO trusted server anywhere. |
|
service/chat
Package chat is the simplest layered service: broadcast text messages with a bounded history that late joiners receive via the ctl snapshot.
|
Package chat is the simplest layered service: broadcast text messages with a bounded history that late joiners receive via the ctl snapshot. |
|
service/checkers
American checkers (English draughts) rules — pure logic, no protocol.
|
American checkers (English draughts) rules — pure logic, no protocol. |
|
service/chess
Package chess is the first game service, wrapping corentings/chess for rules.
|
Package chess is the first game service, wrapping corentings/chess for rules. |
|
service/connect4
Connect Four rules — pure logic, no protocol.
|
Connect Four rules — pure logic, no protocol. |
|
service/game
Package game holds the seat/lifecycle logic every two-player game service shares: who sits where, who may start a game, rematch seat-swapping, and forfeit-on-leave.
|
Package game holds the seat/lifecycle logic every two-player game service shares: who sits where, who may start a game, rematch seat-swapping, and forfeit-on-leave. |
|
service/reversi
Reversi (Othello) rules — pure logic, no protocol.
|
Reversi (Othello) rules — pure logic, no protocol. |
|
session
Package session is the client-side engine: it dials the relay, runs the create/join handshake, performs the PAKE + group-key exchange, and moves encrypted service envelopes.
|
Package session is the client-side engine: it dials the relay, runs the create/join handshake, performs the PAKE + group-key exchange, and moves encrypted service envelopes. |
|
shipcommit
Package shipcommit implements the Battleship hiding scheme: each player commits to all 100 cells of their board before the first shot, then reveals exactly the cells that get shot.
|
Package shipcommit implements the Battleship hiding scheme: each player commits to all 100 cells of their board before the first shot, then reveals exactly the cells that get shot. |
|
wire
The inner payload layer: what clients put inside Direct/Broadcast Payload fields.
|
The inner payload layer: what clients put inside Direct/Broadcast Payload fields. |
|
Package web embeds the built browser client.
|
Package web embeds the built browser client. |
Click to show internal directories.
Click to hide internal directories.