Explore the link between coding and plotting random pairs. See the game version.


In the code or flowchart, click on the dots to change their colour. Then change the values in the white boxes and notice the effect.

Math pattern

  • can you predict when the colours line up vertically?
  • can you predict which way the colours line up diagonally?

Computer code

  • if the repeat number is 10, how can you set the other values so the repeating pattern fits in the grid?