Allow joining an existing room and validating tile placement

This commit is contained in:
2023-02-23 21:00:00 +01:00
parent f1564ca6e3
commit ec6542aa52
7 changed files with 149 additions and 10 deletions

View File

@@ -1,9 +1,11 @@
use board_network::protocol::ServerMessage;
use board_shared::game::Hand;
use futures::channel::mpsc::UnboundedSender;
#[derive(Debug)]
pub struct Player {
pub name: String,
pub score: u32,
pub hand: Hand,
pub ws: Option<UnboundedSender<ServerMessage>>,
}