Hi folks!
I recently started learning Java and as challenge i challenged myself to create a text game. I made a few different classes. A core one that starts the game, and a variablen class. And the game itself which is in the main class.
Here are the classes.
Core:
Variablen:
Main:
The problem is, when i typ in "go to door". It starts no() instead of go(). Why is this happening? I appreciate every help!
Thank you.
I recently started learning Java and as challenge i challenged myself to create a text game. I made a few different classes. A core one that starts the game, and a variablen class. And the game itself which is in the main class.
Here are the classes.
Core:
Variablen:
Main:
The problem is, when i typ in "go to door". It starts no() instead of go(). Why is this happening? I appreciate every help!
Thank you.