The issue is to make a word game, word melee and solve it. For guidance, I need to see if I have made changes, estimates (counting, if true, wrong), and if it repeats properly, then correct:
def main ) Print ("Welcome to Welcome to My Game, Puzzle.") Print ("Gives Game") Wordlist = Open ("wordlist.txt", "r") Import Random Def Random Word (wordlist): wIndex = Random.randint (0, len (wordlist) Print for print in wrong word ("wrong guess:", end = ""): 1) return word list [wIndex] print (" (0, lane (secret) - for the category in the lane (secret) - (*) DEF display game (wrong, right): print (letter, end = "") print () spaces = '-' * * 1): If the secret [1] to the right: empty = empty [: i] + secret [i] [i + 1:] space for the letter in the blank: print (letter, end = "") print () Def Getgoe (approximate): while true: estimate = input () estimate = estimate. Estimate) = 1: Print ("Enter" ("Please try again, you are already using that letter.") Alif does not appear in "abcdefghijklmnopqrstuvwxyz": Print ("Please enter a letter Keep "=)" Yes "if: Keep = input () if you want to play again ((yes or not)", end = ""), while correct: keep = = "yes" : Moving is going to be the right elife == "no": return false and: print ("yes or no.")
main
< V class = "post-text" itemprop = "text">
Many things are going wrong here, and I took the time to go through your code and have noticed that specific lines are wrong. You can find that list but it does not really answer your question, so I will not paste the whole analysis.
Why answer your question, when you run the code, nothing happens That you never call main
You only define it.
Def my_main (): Print ("There is a bunch of stuff here!") # Never called
Nothing happens when you run this code You have to:
def my_main (): print ("a bunch of stuff here!") Main ()
to run it.
Now as I mentioned above: The code you wrote will not do what you are trying to do. However, this issue is different from the other nothing is doing. If you need some help applying the suggested changes to the links above, then you ask about a specific problem after trying the changes.
No comments:
Post a Comment