+ 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

16th Jan 2017, 10:09 AM
Koen Brissa
Koen Brissa - avatar
4 Respostas
+ 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.
16th Jan 2017, 10:42 AM
Andreas K
Andreas K - avatar
0
hey thanks for the reply yeah that would be great. if you want to bo that thanks
16th Jan 2017, 10:46 AM
Koen Brissa
Koen Brissa - avatar
16th Jan 2017, 11:36 AM
Andreas K
Andreas K - avatar
0
thanks a lot ill give it a try like this when im finished ill wil show the results.
16th Jan 2017, 1:01 PM
Koen Brissa
Koen Brissa - avatar