server (from tic-tac example)

This commit is contained in:
Henri Bourcereau 2023-10-28 15:12:04 +02:00
parent 7c4d0a19a4
commit e9d4f04044
8 changed files with 234 additions and 203 deletions

View file

@ -3,8 +3,9 @@ use std::fmt;
// This just makes it easier to dissern between a player id and any ol' u64
type PlayerId = u64;
pub type PlayerId = u64;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum Color {
White,
Black,