pub fn display_help(state: &RefCell<State>) -> NRResult<ParsingResult> {
    let valid_verbs = state.borrow_mut().config.allowed_verbs.clone();
    let valid_verbs_string = &valid_verbs
        .iter()
        .map(|verb| verb.names[0].clone())
        .collect::<Vec<String>>()
        .join(", ")[..];
    let help_text: String = "
To play this game you type your commands and hit enter to execute them. Typically a command \
  has at most three parts: a verb, a subject, and an item. A verb indicates an action you, \
  the player, wants to execute. Many commands can be executed with just a verb such as look, \
  help, quit. For more complex commands you will also need verb and either a subject or an \
  item. A command can also have a verb, item, and subject. A complex command can be: look at \
  dog, talk to person, pick the box, give the box to the dog.

The game will ignore words like 'to', 'the', 'at', 'from', so using them is optional. A \
  valid command can be: talk person, pick box, go south, climb tree, use axe tree.

Valid verbs: "
        .to_string()
        + valid_verbs_string;
    Ok(ParsingResult::Help(help_text))
}
/// Displays the help message for the player.
Displays the help message for the player.
Displays the help message for the player .
pub fn display_help(state: &RefCell<State>) -> NRResult<ParsingResult> {
    let valid_verbs = state.borrow_mut().config.allowed_verbs.clone();
    let valid_verbs_string = &valid_verbs
        .iter()
        .map(|verb| verb.names[0].clone())
        .collect::<Vec<String>>()
        .join(", ")[..];
    let help_text: String = "
To play this game you type your commands and hit enter to execute them. Typically a command \
  has at most three parts: a verb, a subject, and an item. A verb indicates an action you, \
  the player, wants to execute. Many commands can be executed with just a verb such as look, \
  help, quit. For more complex commands you will also need verb and either a subject or an \
  item. A command can also have a verb, item, and subject. A complex command can be: look at \
  dog, talk to person, pick the box, give the box to the dog.
The game will ignore words like 'to', 'the', 'at', 'from', so using them is optional. A \
  valid command can be: talk person, pick box, go south, climb tree, use axe tree.
Valid verbs: "
        .to_string()
        + valid_verbs_string;
    Ok(ParsingResult::Help(help_text))
}
pub fn display_help ( state : & RefCell < State > ) -> NRResult < ParsingResult > { let valid_verbs = state . borrow_mut ( ) . config . allowed_verbs . clone ( ) ; let valid_verbs_string = & valid_verbs . iter ( ) . map ( | verb | verb . names [ 0 ] . clone ( ) ) . collect :: < Vec < String > > ( ) . join ( " " ) [ .. ] ; let help_text : String = " \
 \
 \
 \
 \
 \
 " . to_string ( ) + valid_verbs_string ; Ok ( ParsingResult :: Help ( help_text ) ) }
Displays the help message for the player.
Displays the help message for the player .
state
&RefCell<State>
state
&RefCell<State>