text_based_rpg 0.1.0

A text-based RPG game
Documentation
use text_based_rpg::start_game;

fn main() {
    println!("Welcome to the Text Based RPG!");
    println!("Created by Kevin");

    println!("Before we begin, let's help you create your character(s)");

    let mut party_of_heroes = Vec::new();

    let user_input = text_based_rpg::get_user_input("How many Heroes would you like to begin in your party? ");
    match user_input.trim().parse::<usize>() {
        Ok(num_heroes) => {

            for i in 0..num_heroes {
                println!("Creating Hero {}", i + 1);
                party_of_heroes.push(text_based_rpg::create_hero());
            }

            start_game(party_of_heroes);
        }
        Err(_) => {
            println!("Invalid input, please enter a number");
        }
    }


}