This content is hosted by a third party. By showing the external content you accept the terms and conditions of youtube.com.
By giving Roby instructions to form a picture square by square, pixel by pixel, we discover that when many squares in a row have the same colour, we can use numbers to make it more interesting. Computers do the same...
Required material: squared notebook, or 5 × 5 chequered board drawn on a piece of paper, felt-tip pen. To represent the code of the drawing you can use a pen and paper.
This content is hosted by a third party. By showing the external content you accept the terms and conditions of youtube.com.
Try to make a chequered design and represent it with RLE encoding. The size of the design is equal to the number of squares, but what is the size of its RLE representation?
If you are interested in more unplugged activities, or activities in different programming languages, robotics, micro:bit etc., check out the EU Code Weeks “Learning Bits” with video tutorials and lesson plans for primary, lower secondary and upper secondary schools. Also have a look at the EU Code Week Learn&Teach resources, where you can find free, high-quality resources from around the world for teachers and students.
Copyright notice
The EU Code Week website is a service supported by the European Commission
Except where stated otherwise, content made available on this site is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license
Licensing under Creative Commons licenses does not of itself affect the ownership of the copyright
Content from third party websites is subject to their own copyright restrictions; please refer to the site of origin for more information.