Many tutorials on how to create a game in Scratch will be based on using the arrow keys to control the main sprite. This is a great approach indeed but is not suitable if you are designing the game toe…
During the coronavirus pandemic, the rainbow has become a symbol of gratitude for the medical staff working in hospitals as well as all the other key workers who carried on working to provide essential services to their community. All over…
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…