diff --git a/sea_battle_backend/src/data/play_config.rs b/sea_battle_backend/src/data/play_config.rs index cc4ee41..346db15 100644 --- a/sea_battle_backend/src/data/play_config.rs +++ b/sea_battle_backend/src/data/play_config.rs @@ -4,6 +4,9 @@ use crate::consts::*; #[derive(serde::Serialize, serde::Deserialize, Debug, Copy, Clone, Eq, PartialEq)] pub enum BotType { Random, + // TODO : LinearShooting + // TODO : GridBot + // TODO : SmartBot } #[derive(serde::Serialize)] diff --git a/sea_battle_backend/src/human_player_ws.rs b/sea_battle_backend/src/human_player_ws.rs index ba7057a..890cbe9 100644 --- a/sea_battle_backend/src/human_player_ws.rs +++ b/sea_battle_backend/src/human_player_ws.rs @@ -24,7 +24,8 @@ pub enum StartMode { Bot(GameRules), #[default] - AgainstHuman, + RandomHuman, + //TODO : create invite } #[derive(serde::Deserialize, serde::Serialize, Debug)] @@ -150,7 +151,7 @@ impl Actor for HumanPlayerWS { game.do_send(AddPlayer(player)); } - StartMode::AgainstHuman => { + StartMode::RandomHuman => { unimplemented!(); } }