wip bots
This commit is contained in:
parent
e9f4940c40
commit
14021ff09b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue