From 13c03a8df0ae418dcedc3d86aa96a04d87bcfd62 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 15 Sep 2022 20:14:57 +0200 Subject: [PATCH] Add TODOs --- sea_battle_backend/src/data/play_config.rs | 3 +++ sea_battle_backend/src/human_player_ws.rs | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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!(); } }