← All lessons

LESSON 13 OF 13

BUILD A COMPLETE GAME

Everything from lessons 1-12 in one program.

putting it togetherreplay loopcolour feedback

Guess the Number is the traditional first game and it uses almost everything: RND picks the secret, INPUT reads a guess, IF compares, GOTO loops, a counter tracks goes, and colours give feedback.

Read it line by line and make sure you can say what each one does. Then change it. Making a working program do something slightly different is how everyone learned on this machine.

LESSON 1313 lines

Type with the keyboard under the screen, or tap the blue screen to use your phone's own keyboard. While a program runs, keys go to INPUT and GET. When it says READY., type a line and press RETURN to run it straight away.