+ 1
(SOLVED)Why doesn't this code work?
Every time I put in howl, the player automatically wins the game. Why? https://code.sololearn.com/ccxhE00Ni4TP/#py
4 Answers
+ 4
Oma Falk it's just a text based randomized game from the looks of it. I don't see any graphical modules trying to be imported.
2024_Jeremy Norris you're going to be hard pressed to find someone who wants to go through 319 lines of poorly organized code with no instruction as to what is supposed to occur. You could greatly reduce your code by using a couple of maps to get rid of a very large amount of your variables and if statements and the use of some methods to help organize code to get rid of all the repeated code. Learn at least that then clean up your code and give better direction as to how it should work and what inputs/ outputs are expected, then you may get the help you need more readily.
+ 2
this kind of games don't work on SL... sorryđ
+ 1
I realize now that different things happen in different sites there are different things that are recognized in the code. I am kind of messy because when I think of an idea I immediatly just run to the code to add it in. I am a begginer at python. I will keep trying to fix the mistake I made somwhere but that you guys for looking at it and trying to figure it out :) .
Ps. If its any help, I need to assign a number to a variable in an if statement. I think thats where I messed up.
+ 1
OMGosh I fixed it, just had to rearange the code. thanks guy so much oof.