What is your program exactly supposed to do?
As far as I can tell, your program is functioning.
I did have to add some brackets at the end because they were missing.
Line 34, you need a bracket to enclose the if statement on line 31
Line 39, You need a bracket to enclose the main function.
I ran the program and this is the output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
introductory story where I tell you where you are, and ask for your name and gen
der.
What is your name?
Michael
What is your gender
male
Well now we are properly introduced!
This is where I tell you your backstory and commands for help
movesfasf
I'm sorry, I don't know that command.
ok
Process returned 0 (0x0) execution time : 31.643 s
Press any key to continue.
|
As you can see, I typed something other than "help" and the program produced the intended output. It did not crash on my system.
EDIT:
If you type in anything other than "help" and "move" as the first 4 letters, the program will simply terminate since you did not tell the program what to do with any input for playerInput other than "help" and "move"
EDIT2:
TarikNeaj beat me to it, but yes, basically what he said.