Drawing Graphics (BBC Micro)
A great demonstration of the power of the BBC Micro, and the start of thinking about game code is to write a really simply program that draws random lines from the center of the screen outwards.
The really short code is below.
Briefly to explain it, we set the screen to high resolution mode (1000x1000px) using MODE 0 command. After this we generate 2 random numbers stored in variables X and Y. Finally, we move the cursor to the center (500,500) and draw out to wherever the random numbers tell it to.

With a small tweak we can go to a color mode (mode 5), and generate a random color.
The BBC can only do 4 colors. Black, red,yellow and white. So we generate a random number between 0 and 3.
Note that GCOL0 is a zero not the letter O.
Also, we removed the MOVE command so it simply draws from

īģŋ