Sync tile placements for all players

This commit is contained in:
2023-03-10 10:33:36 +01:00
parent 4fbe817f71
commit 126d5026cd
4 changed files with 124 additions and 14 deletions

View File

@@ -20,6 +20,8 @@ pub enum ClientMessage {
///
/// The server will validate the move and answer with a TilePlaced if the message is valid.
TileUse(Position2dRef, usize),
/// Try to place an equal sign on the board.
TilePlaceEqual(Position2dRef),
/// Try to remove a tile from the board to add it to the hand.
TileTake(Position2dRef),
/// Get the server to validate the current player moves.