Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 2: Lost Fortune 2.0 *Programs must be executed using NodeJS* Introduction: In this assignment we will demonstrate an understanding of conditionals and loops. Using

Assignment 2: Lost Fortune 2.0

*Programs must be executed using NodeJS*

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Discuss about training and development in India?

Answered: 1 week ago

Question

Explain the various techniques of training and development.

Answered: 1 week ago

Question

Explain the various techniques of Management Development.

Answered: 1 week ago

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago