Topic List | Page List: 1 |
---|---|
Topic | ITT: Learning Python |
SpiritSephiroth 07/22/21 9:25:52 PM #102: | SomeLikeItHoth posted... Spent another 30 minutes and finally figured it out! I forgot to put a @property (look this up) tag above one method and I made three other typos. So it was a combination of things. But now my code is working 100%. Just needed to do some trial and error. 1337toothbrush posted... Alright, so I threw together a quick and dirty structured text adventure. Each room is its own function and the game runs in a loop with a win or loss condition. This allows you to jump back and forth between rooms and adding a room is simply a matter of writing another function and having one of the existing rooms simply "link" to that room by setting the state. Thanks! I'll give these a go. I tried to do If statements myself but totally forgot to create variables like an idiot. Such a basic mistake lol --- ... Copied to Clipboard! |
Topic List | Page List: 1 |