Its me again : )
I added a fight with a zombie to my text-based RPG game using 'while' as well as a Retry option. (I was experimenting with the 'while' function)
And now, when I save and try to run my program, it opens and closes before I can see anything. I think there is an error in my code, but when I Run Module with IDLE, it runs fine and I do not encounter any error throughout the whole program.
So I would...
User Profile
Collapse
-
Ohh, Alright. Thanks -
> and < mixed up in my code?
Hello again.
Im making a text-based dungeon-adventure game. And I came across a strange "error" in my code.
">" Means "The stuff on this side is bigger > The stuff on this side is smaller"
Right? Well when this part of my code is run, if the age the user inputs is over 21, it says "You're kinda young.. blah blah"
But if the number they input is UNDER 21, it says... -
-
What is wrong with this code?
I just started learning Python... 11 hours ago... And I tried to make an old-school dungeon game. So I made this program, but I get errors when I try to run it. I think its worth mentioning that I wrote the program while using Python 3.1 but I just changed to 2.6 because it seems to be used more.
Code:print("Welcome to Boyyini's first program. \n This is my first attempt at making a program from scratch.") print("In
No activity results to display
Show More
Leave a comment: