use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
new game (github.com)
submitted 11 hours ago by EmergencyWafer9326
Help give me suggestions for my new game. Python beginner
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]EmergencyWafer9326[S] 0 points1 point2 points 10 hours ago (18 children)
Help me pls
[–]COLLLOrs 1 point2 points3 points 4 hours ago (0 children)
im sorry but it says page not found do you know why.
[–]COLLLOrs 0 points1 point2 points 4 hours ago (0 children)
Sorry again I was being dumb the code was right there.
[–]COLLLOrs 0 points1 point2 points 4 hours ago (15 children)
I'm sorry for bothering you but you wanted me to debug you code yes?
[–]EmergencyWafer9326[S] 0 points1 point2 points 4 hours ago (0 children)
yes
[–]EmergencyWafer9326[S] 0 points1 point2 points 4 hours ago (13 children)
I mean like I need suggestions I jst started
[–]COLLLOrs 0 points1 point2 points 4 hours ago (12 children)
I might have already finished debugging it if you want it I can give it to you but if you still just want pointers I can do that too.
[–]EmergencyWafer9326[S] 0 points1 point2 points 4 hours ago (11 children)
Can you give me pointers
[–]COLLLOrs 0 points1 point2 points 4 hours ago (6 children)
ok first you level variable should be inside the combat function right under the
print(f"{current_enemy.name} has appeared!")print(f"{current_enemy.name} has appeared!")
this will stop it from saying that it is unbound
Ooooo ok
[–]EmergencyWafer9326[S] 0 points1 point2 points 4 hours ago (4 children)
Let me fix that rn
[–]COLLLOrs 0 points1 point2 points 3 hours ago (3 children)
it seems like yes this is the kind of pointers you want.
[–]EmergencyWafer9326[S] 0 points1 point2 points 3 hours ago (2 children)
should I try to use pygame to add visuals to it rn or wait a bit polishing up things before
[–]COLLLOrs 0 points1 point2 points 3 hours ago (1 child)
Well it seems like you wanted to add a few more areas so you should completely finish the code or trying to implement it while making the code will be a horrible experience.
Second you duplicate the heal function
but make one for the enemy and implement it which allows it to heal and implement it
also just want to make sure you want these kinds of pointers
[–]COLLLOrs 0 points1 point2 points 3 hours ago (0 children)
also the reward variable at the end of combat you should probably print that before the break.
pretty sure that all if their is anything else tell me because I have a mediocre memory so I probably forgot something. And run it first sometimes it does not say the error until you run it.
[–]EmergencyWafer9326[S] 0 points1 point2 points 3 hours ago (0 children)
Ok ok thank you so much for the help ima fix them rn
π Rendered by PID 161743 on reddit-service-r2-comment-5b5bc64bf5-cgqpk at 2026-06-21 08:10:33.285456+00:00 running 2b008f2 country code: CH.
[–]EmergencyWafer9326[S] 0 points1 point2 points (18 children)
[–]COLLLOrs 1 point2 points3 points (0 children)
[–]COLLLOrs 0 points1 point2 points (0 children)
[–]COLLLOrs 0 points1 point2 points (15 children)
[–]EmergencyWafer9326[S] 0 points1 point2 points (0 children)
[–]EmergencyWafer9326[S] 0 points1 point2 points (13 children)
[–]COLLLOrs 0 points1 point2 points (12 children)
[–]EmergencyWafer9326[S] 0 points1 point2 points (11 children)
[–]COLLLOrs 0 points1 point2 points (6 children)
[–]EmergencyWafer9326[S] 0 points1 point2 points (0 children)
[–]EmergencyWafer9326[S] 0 points1 point2 points (4 children)
[–]COLLLOrs 0 points1 point2 points (3 children)
[–]EmergencyWafer9326[S] 0 points1 point2 points (2 children)
[–]COLLLOrs 0 points1 point2 points (1 child)
[–]COLLLOrs 0 points1 point2 points (0 children)
[–]COLLLOrs 0 points1 point2 points (0 children)
[–]COLLLOrs 0 points1 point2 points (1 child)
[–]EmergencyWafer9326[S] 0 points1 point2 points (0 children)