Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Andres Ballares #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
21 changes: 21 additions & 0 deletions gameProject.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const readLineSync = require("readline-sync");

let salute = readLineSync.question("What's your name?");
console.log("Hi, It's nice to meet you")

salute = readLineSync.keyInYN('Would you like to play a Game with me?');{
if(readLineSync.keyInYN === "y"){
console.log("Awesome. Let me tell you about it");
} else{(readLineSync.keyInYN === "N")
console.log("No worries, maybe some other time we'll play.")
}
}






//console.log(`Hello ${nameInput}! Welcome to my game.`)

//I did not feel I had the concepts (e.i. looping, objects, chaining methods) well understood in order to move forward with the project.
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.

4 changes: 2 additions & 2 deletions textBasedAdventure.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const readline1 = require('readline-sync')
const readLineSync = require('readline-sync');

let nameInput = readline.question("Enter your name: ")
let nameInput = readline.question("Enter your name: ");

console.log(`Hello ${nameInput}! Welcome to my game.`)