Trait console_games::Play
source · pub trait Play {
fn name(&self) -> &'static str;
fn start(&self);
fn print_intro(&self) { ... }
}Expand description
The main trait to classify a struct as a playable game.
Required Methods§
Provided Methods§
sourcefn print_intro(&self)
fn print_intro(&self)
print the game’s intro or description before the game starts