Hello there! Today I suddenly have the impression of doing a fraction game in app inventor 2, as I have watched a video about the game 'I hate fractions'.

In case you don't know how a fraction game operates, the computer randomly generates two fractions and the player has to determine which one is larger in a constant short time.

Here is my designer for the game.

Here are the codes of the game.

The only thing I'm confused about is the scoring system. I don't know how to make the system base on the number of correct answers/ wrong answers within a period of time, or the total time to complete a certain number of questions.

Most importantly, I don't know how can the computer indicate which fraction is larger? How can it detect the fraction is larger than the other one?

Please, answer this question. I want to make a game similar to 'I hate fractions'. Thank you for your help!