Introduction: In this assignment we will demonstrate an understanding of conditionals and loops. Using Notepad++ *Program must be executed by NodeJS* 1. Create a new file named lost_fortune_20.js 2. After you display your introduction, extend your storyline by coming up with four options for the user to choose from in the story such as: 1) Enter the cabin? 2) Eat the bowl of oatmeal? 3) Sit in the chair? 4) Lay in the bed? The options should make sense within your existing story line. Display these options to the user. 3. Prompt the user to select an option. 4. Display another part of the story line based on the option the user selected. 5. Track user lives: The user should start the game with 3 lives. One of your story options should result in the user losing a life. After each option, display the updated statistics. 6. Prompt the user to play again. If yes, start your game over, if not, end the game and say goodbye!. 7. Modify the game to allow the user to enter their name as the leader name. Save your program in a folder called assignment_2. and zip that folder
Introduction: In this assignment we will demonstrate an understanding of conditionals and loops.
Using Notepad++
*
1. Create a new file named lost_fortune_20.js
2. After you display your introduction, extend your storyline by coming up with four options for the user to choose from in the story such as:
1) Enter the cabin?
2) Eat the bowl of oatmeal?
3) Sit in the chair?
4) Lay in the bed?
The options should make sense within your existing story line.
Display these options to the user.
3. Prompt the user to select an option.
4. Display another part of the story line based on the option the user selected.
5. Track user lives:
The user should start the game with 3 lives. One of your story options should result in the user losing a life.
After each option, display the updated statistics.
6. Prompt the user to play again. If yes, start your game over, if not, end the game and say goodbye!.
7. Modify the game to allow the user to enter their name as the leader name.
Save your program in a folder called assignment_2. and zip that folder
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images