Help i confused myself and now i feel lost for number photo to text

hello
English isn't my first language so I'm sorry if this sounds off

i have an assignment where i have to make an app where it shows a number from -999 to 999 where it shows the number using photos abd the user has to input the text so it matches the photos
i feel like i made it overcomplicated i would like


NumberGussingGame.aia (614.2 KB)
some help as to what to change im not sure what to do now

image

Use the Companion's Do It to see what you are comparing.
I had to replace


with

because you were ignoring the textbox input.

In this sample run, the images said 223 but your app thought the number was 253.

Text comparison is tricky. Where does the '-' sign appear in the ASCII table compared to '0'?

This is safer.

Example of how text comparison breaks math:


This should be false, because -2 is less than -1.

This is a lazier way to get the 3 digits of a number in the range 100 to 999:

For the comparison code, change


to

Notice how the color is set separately from the text.

That explains the funny numbers after your correct/wrong announcements. Those were color values.

I also threw in updating the scores.

NumberGussingGame.aia (614.3 KB)

I also emboldened your buttons, and enlarged their font sizes, for readability.

1 Like

I'm sorry for the late replay and thank you yeah this is much easier to understand then what i made
have a good day!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.