How to make a fraction game?

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! :slight_smile:

Perhaps these relationships will help you decide.

N1/D1 = 1/2 = 0.5
N2/D2 = 3/4 = 0.75
and the lessons in this tutorial Programming Your App to Make Decisions and the Math blocks

if N1/D1 is > N2/D2 then do something
else
do something else

Oh icic, thx for your help! I'll try to do it. :slight_smile: