package ships.proto

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message BoardMove

boardmove.proto:98

* One move in the channel game. The std::string-encoded BoardMove bytes correspond to a serialised message of this type.

message BoardState

boardstate.proto:34

* The full board state of a game channel of Xayaships. The generic board state for libgamechannel (std::string) is the serialised form of this message. This state applies only to channels that already have both participants. While waiting for the second player to join, the core game logic never invokes any board functions at all, as no disputes / resolutions are possible in that case.

message KnownShips

boardstate.proto:14

* The "known information" about the ship configuration of one player: Where coordinates have been guessed and where (those) have been hits. Both are boolean arrays encoded directly into a uint64.

Used in: BoardState

message PositionCommitmentMove

boardmove.proto:14

* A move that creates the position commitment for either of the players. Depending on whether this is the first or second player's move, either the seed hash or the seed (as preimage) will be set.

Used in: BoardMove

message PositionRevealMove

boardmove.proto:79

* A move revealing the original ship configuration and salt.

Used in: BoardMove

message ReplyMove

boardmove.proto:60

* A move that replies to a shot

Used in: BoardMove

enum ReplyMove.ReplyType

boardmove.proto:64

* Possible reply values.

Used in: ReplyMove

message SeedRevealMove

boardmove.proto:34

* The move of player 0 revealing the random seed preimage.

Used in: BoardMove

message ShotMove

boardmove.proto:49

* A move that guesses a location for a shot.

Used in: BoardMove