+ 1
Can someone help me with a bit of coding?
i try to make a text based game. a smal one to learn and understand coding. but i cant figure out the way of doing it. for example: i must pick up 3 items and then go throu a door. but i dont find a way to code that simple. can someone help me with this? i will post the code of what i have on my profile. thanks in advance. koen
4 Answers
+ 1
You problem is that enum are not comparable to a String on a direct way.
Tge second is that you declared your enum with the same name as your input which blocks your switch case. If you want I will send you some snippet.
0
hey thanks for the reply yeah that would be great. if you want to bo that thanks
0
hope this helps...
https://code.sololearn.com/cZ8BQro80kI8/?ref=app
0
thanks a lot ill give it a try like this when im finished ill wil show the results.