index.js
//End Game Instructions. Asking user if they'd like to try again or not with options to either return to the "main menu" or try another round of this game

End Game Instructions. Asking user if they'd like to try again or not with options to either return to the "main menu" or try another round of this game
End Game Instructions . Asking user if they ' d like to try again or not with options to either return to the " main menu " or try another round of this game
async function stepthree() {
  let newComment2 = await ask("Would you like to try again? ");
  if (newComment2 === "yes") {
    let newComment3 = await ask(
      "Would you like to play another round here or go back to the main menu? Enter `here` or main menu` "
    );
    if (newComment3 === "here") {
      start();
    } else if (newComment3 === "main menu") {
      init();
    }
  }
  else {
    console.log("Bye");
    process.exit();
  }
}
async function stepthree ( ) { let newComment2 = await ask ( "Would you like to try again? " ) ; if ( newComment2 === "yes" ) { let newComment3 = await ask ( "Would you like to play another round here or go back to the main menu? Enter `here` or main menu` " ) ; if ( newComment3 === "here" ) { start ( ) ; } else if ( newComment3 === "main menu" ) { init ( ) ; } } else { console . log ( "Bye" ) ; process . exit ( ) ; } }
End Game Instructions.
End Game Instructions .
//a request to play again
 //asks the player if they'd like to repeat this game, or go back to the main menu
 //here triggers a new Game 1
 //main menu starts the entire program over again
 //upon entry of any other kind of response
