Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
25 changes: 25 additions & 0 deletions Nora-First-Individule-Project-.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

// Not done yet: The game displays initial instructions about how to play

//The game asks the user for his/her name and displays a welcome message

var readlineSync = require('readline-sync');
var userName = readlineSync.question('What is your name ? ');
console.log('Have you heared the greatest news ' + userName + ' ?! YOU are HERE!\n \nThinking about your feelings...');

//As a user, I want to be able to make decisions during the game
//The user must enter a string to make a decision
//The user must enter a number to make a decision
//There are at least 10 opportunities to make a decision

feelings = ['Happy', 'Lazy', 'Angry', 'Sad'],
index = readlineSync.keyInSelect(feelings, 'How do you feel ?');
console.log('From 1 to 5 how ' + feelings[index]);
var scale = readlineSync.question(' are you (when 1 is th lowest and 5 is the highest)? ');


//Invalid entires are re-prompted




19 changes: 18 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions textBasedAdventure.js

This file was deleted.