Benjamin Flintstone wrote:So i have begun to code this text-based game.
OK, well from the look of it, it would appear to be a kind of "story" game, where the user can choose how they want to to continue/end.
My suggestion (basically the same as Campbell's):
1.
StopCoding (←click).
2. Draw a "map" of the story on a piece of paper, with circles representing "parts" (maybe with a bit of text) and lines with numbers denoting which "option" gets you to the next part.
Then try and work out how you might code it. Right now, you're just trying to do it with '
if's and '
else's and that's likely to produce
Spaghetti code.
HIH
Winston