wip bots
This commit is contained in:
parent
e9f4940c40
commit
14021ff09b
|
|
@ -57,6 +57,10 @@ impl App {
|
||||||
"state" => self.show_state(),
|
"state" => self.show_state(),
|
||||||
"history" => self.show_history(),
|
"history" => self.show_history(),
|
||||||
"quit" => self.quit(),
|
"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(),
|
"roll" => self.roll_dice(),
|
||||||
"go" => self.go(),
|
"go" => self.go(),
|
||||||
_ => self.add_move(input),
|
_ => self.add_move(input),
|
||||||
|
|
@ -64,6 +68,12 @@ impl App {
|
||||||
println!("{}", self.display());
|
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.
|
// Set running to false to quit the application.
|
||||||
pub fn quit(&mut self) {
|
pub fn quit(&mut self) {
|
||||||
self.should_quit = true;
|
self.should_quit = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue