The luminance of a colour is a measure used to describe the perceived brightness of a colour. It is possible to calculate the luminance of a colour based on its RGB colour code. So let’s consider an algorithm that collects an RGB colour…
In this blog post we are investigating whether we can teach a computer how to perform a magic trick. Algorithm If you want a computer to perform a specific task you need to provide this computer with a clear set…
Assembly language is a low-level programming language. Each assembly language is specific to a particular computer architecture. Assembly language uses mnemonics to represent low-level machine instructions or opcodes. Many operations require one or more operands in order to form a…
The radian is a unit of measure for angles used mainly in trigonometry. It is used as an alternative to degrees. Whereas, in degrees a full circle is 360 degrees, in radians a full circle is 2π radians: It is…
The pygame library contains several modules and classes that you will use when creating video retro arcade games. You will need to familiarise yourself with the most useful modules and classes as listed below: (Click on a module/class to access…
In computer science, an abstract syntax tree (AST), or just syntax tree, is a tree representation of the high level source code. The compilation process consists of translating the high level source code (e.g. Java, Python, C++, FORTRAN, etc.) into…
In this challenge we will use the Arduino board to control a RGB LED to create a gradient light effect where the LED will fade from red to purple, to blue, to purple and back to red. You do not…
For this challenge we will create a a game of Whack-A-Mole using an Arduino device/board, three LEDs, three push buttons and a piezo buzzer. You do not need to have access to an Arduino board. Instead you can use the…
For this challenge we will create a traffic lights using an Arduino device/board and three LEDs. We will use C/C++ to create the code to control the Arduino board to reproduce a following traffic lights sequence: You do not need…
The purpose of this challenge is to create your own collection of sound effects to be used a library of assets for your own retro arcade games. We will use Python code online to create the sound file using EarSketch.…