mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-27 19:20:44 +01:00
feat: add sending and receiving moves and captures
This commit is contained in:
@@ -119,10 +119,14 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
|
||||
Some(ClientData::AvailableCaptures(capture_paths)) => {
|
||||
info!("Available captures paths: {:?}", capture_paths);
|
||||
todo!()
|
||||
}
|
||||
|
||||
Some(ClientData::AvailableMoves(move_paths)) => todo!(),
|
||||
Some(ClientData::AvailableMoves(move_paths)) => {
|
||||
info!("Available moves: {:?}", move_paths);
|
||||
todo!();
|
||||
},
|
||||
|
||||
Some(ClientData::TextMessage {sender, content}) => {
|
||||
info!("[{}] - {}", sender, content);
|
||||
|
||||
Reference in New Issue
Block a user