From 14021ff09b66e5b58e1bf07a2b1f0efcec81b41a Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Thu, 14 Nov 2024 17:14:37 +0100 Subject: [PATCH] wip bots --- client_cli/src/app.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client_cli/src/app.rs b/client_cli/src/app.rs index b3f6f23..6685657 100644 --- a/client_cli/src/app.rs +++ b/client_cli/src/app.rs @@ -57,6 +57,10 @@ impl App { "state" => self.show_state(), "history" => self.show_history(), "quit" => self.quit(), + // run bots game (when two bots) + "bots" => self.bots_all(), + "" => self.bots_next_step(), + // play (when one bot) "roll" => self.roll_dice(), "go" => self.go(), _ => self.add_move(input), @@ -64,6 +68,12 @@ impl App { println!("{}", self.display()); } + // --- 2 bots game actions + + fn bots_all(&mut self) {} + + fn bots_next_step(&mut self) {} + // Set running to false to quit the application. pub fn quit(&mut self) { self.should_quit = true;