#can someone help me fix this?

1 messages · Page 1 of 1 (latest)

reef berryBOT
#

@haughty jolt

Xasan Uploaded Some Code
Uploaded these files to a Gist
haughty jolt
idle grail
#

Fix what? You've not outlined any problems.

haughty jolt
#

the code in general

#

like

#

it sucks

ivory palm
#

Copy and paste it

#

I dont have eagle eyes 👀

idle grail
#

It's literally linked by the bot in the first message

#

Please don't share the same code a third time in a third format

haughty jolt
#

why u so mean

#

im genuinely trying to learn

idle grail
#

Why are you having so much difficulty with such simple stuff

haughty jolt
#

cuz headache

ivory palm
haughty jolt
#

the code functions

#

like i said

#

started as a guessing game

#

i started adding functions

#

then it became its own thing

#

run it and you will see

#

problem is

#

it does not run how i want it to

ivory palm
#

Im not on my laptop rn

haughty jolt
#

i just want some insight yknow

#

fix it up

#

that all

#

it feels not good

ivory palm
#
  1. The global keyword is not used properly. Whenever we want to change the value of a global variable within a function, we need to use the global keyword. However, this has not been done in some functions, such as next_round().
  2. The high_score variable is used within the play_round() function, but it has not been declared as a global variable.
  3. The root.update() function in the next_round() function is incomplete. It should be updated to root.update_idletasks() or root.update().
  4. The range_entry and range_button widgets have not been defined.
#

Not mine i use chat gpt kek

#

This should be your problem

haughty jolt
#

yes

#

it is

#

i see now

ivory palm
#

Try it first

haughty jolt
#

well

ivory palm
#

Dont celebrate early

haughty jolt
#

it feels wrong

#

like

#

the code itself

#

something feels wrong

ivory palm
#

It doesn’t matter

#

If it’s run it runkek kek

haughty jolt
#

bro

#

chatgpt amazing tho

#

imma use it

#

see if it makes this game good

ivory palm
#

Dont use it first

#

Use google first

#

Try to figure out your problem

haughty jolt
#

i found the mistakes with chatgpt

ivory palm
#

It’s not 100% correct

haughty jolt
#

still