Share your repls and programming experiences

← Back to all posts
Text Adventure: TROGDOR! (Work in progress)
DewMcStew (2)

A text adventure based on the characters of homestarrunner.com. If you don't know what that is, play it anyway.

Comments
hotnewtop
InvisibleOne (2674)

Nice game, I just have a few tips. First off, you don't need to put paranthesis around your variables in your if statements and stuff. You also don't need them in your while loops, but you can if you want to.
Instead of doing while (1==1): you can just do while true: It's faster and covers the possibility that 1 might not be equal to 1 (This allows Martians to play your game without errors, as their math requires that 1 not be equal to 1, but rather 1 is equal to the square root of 1 divided by one, similar to the way two is equal to the square root of two divided by two.)
Also, you should add some colors to the text so it looks cooler.

DewMcStew (2)

@InvisibleOne will definitely add colors, good idea. i think i started to but I had trouble with the import command, but i can add it back in. I noticed the thing about parenthesis halfway in so now the code's kinda inconsistent :/ oh well

InvisibleOne (2674)

Well it doesn't cause any issues, so you can just leave it. As for the colors, what module are/were you using? @DewMcStew

DewMcStew (2)

@InvisibleOne "colored" but i may have fixed the problem, just haven't added anything yet

InvisibleOne (2674)

Ok, I've never used colored before, I usually just use the ACII Codes come in python by default, or Colorama @DewMcStew