SunFounder TS-10 10.1-inch Touch Screen
Programming the Backdrop
When the game starts, a random integer between 1-16 appears in the middle of our screen as a decimal number that
needs to be converted by binary, and it is stored in the variable random.
Whether we receive a “right” result or a “wrong” result, we have to regenerate the random number and proceed to the
next round of the game.
152 Chapter 5. PROJECTS AND ACTIVITIES