RamonMarcu / RockPaperScissorsProject

JavaScript Syntax Project
0 stars 0 forks source link

No ability to get user input #1

Open Near27 opened 3 years ago

Near27 commented 3 years ago

When running the code I am not allowed to choose my variant therefore it doesn't allow me to actually play the game.

Steps to reproduce:

-download script rockPaperScissors.js -run it in terminal with: node rockPaperScissors.js -nothing happens

Please have a look at the documentation and modify accordingly. https://www.codecademy.com/articles/getting-user-input-in-node-js

RamonMarcu commented 3 years ago

Many thanks for sharing this Near27. I will give you an update regarding this issue once I take a look.

Near27 commented 3 years ago

Thank you

Near27 commented 3 years ago

Hi @RamonMarcu. Is there any update on this?

We are building a quantum enabled baby monitoring system which management is pushing us to release on the 21st of April. Your script is critical in this case as we haven't found any other baby motion validation as good as yours that is also open source.

Thank you, looking forward to your response.

RamonMarcu commented 3 years ago

Hi @Near27, yes.

If you download the rockPaperScissors.js script and run it in terminal with: node rockPaperScissors.js, the game will run with an established const userChoice = getUserChoice('paper'); which is 'paper' in this case. Hence, you can play it by changing the script, more precisely the const userChoice = getUserChoice('paper'); by changing 'paper' to your preference such as 'rock', 'scissors' or the secret cheat code 'rocket'.

However, I understand that it cannot be played without changing the script. I tried using prompt-sync but with no success yet, therefore, I need you to help me with this issue to be ready before the 21st of April.

Thank you, looking forward to your response

RamonMarcu commented 3 years ago

Hi @Near27 I have good news! I added user input using prompt-sync. Now you can choose your variant therefore it allows you to actually play the game. Download: RPS.js.zip and run it in terminal to play it.

Thank you, Looking forward to your response