generate

Function generate 

Source
pub fn generate() -> Result<()>
Expand description

Set up a new game directory and player profile

Creates a rustwarrior directory if one does not exist yet. Then creates a player directory for the chosen player name, with the following contents:

  • src/main.rs
  • Cargo.toml
  • .profile

From there, the newly generated crate can be used to start level one.