NormR, on 23 September 2016 - 04:53 PM, said:
Quote
Please explain.
Copy the full contents of the command prompt console and paste here from when you execute the program. Add some comments saying what it wrong.
Note: The code doesn't follow the logic for getting valid input from the user that I suggested in post#13
ok so heres what I get when I run that code and try to type some stuff
scream command works completely fine :
== Dark Room ==
You have just awoken and you cannont see anything around you. The only thing you notice is a small hole of light in the corner of the room.
You are badly injured and can hardly walk. Seems as though your left ankle is sprained.
** Do you SCREAM for help or STUMBLE around the dark room? **
Choice: scream
== Dark Room ==
The scream does not echo and cannot be heard by anyone. As your eyes adjust you can see a figure lying on the ground under the source of light.
** Do you CRAWL towards the figure or STUMBLE around the room? **
Choice:
-----------------------------------------------------------------------------------------------------------------------------------
now if I try to type stumble this is what i get...
== Dark Room ==
You have just awoken and you cannont see anything around you. The only thing you notice is a small hole of light in the corner of the room.
You are badly injured and can hardly walk. Seems as though your left ankle is sprained.
** Do you SCREAM for help or STUMBLE around the dark room? **
Choice: stumble
Stumble
STUMBLE
-----------------------------------------------------------------------------------------------------------------------------------
however when I type scream and then stumble it goes to my stumble if statement that should be in the first option...
== Dark Room ==
You have just awoken and you cannont see anything around you. The only thing you notice is a small hole of light in the corner of the room.
You are badly injured and can hardly walk. Seems as though your left ankle is sprained.
** Do you SCREAM for help or STUMBLE around the dark room? **
Choice: scream
== Dark Room ==
The scream does not echo and cannot be heard by anyone. As your eyes adjust you can see a figure lying on the ground under the source of light.
** Do you CRAWL towards the figure or STUMBLE around the room? **
Choice: stumble
== Dark Room ==
You stumble around finding nothing but the room around you. As your eyes adjust you can see a figure lying on the ground under the source of light.
** Do you CRAWL towards the figure or STAY where you are? **
Choice:

New Topic/Question
Reply




MultiQuote






|