Tag: array

Space Invaders – 3D Pixel Art


In this blog post we will use Glowscript to create a 3D animation of a space invader. 2D Graphics used in retro arcade games consist of pixels. A 2D graphic can be described as a grid of pixels of different

Defragmentation Algorithm

File Allocation Table (FAT System) A file allocation table (FAT) is a table that an operating system maintains on a hard disk that provides a map of the clusters (the basic units of logical storage on a hard disk) that

Connect4 Challenge

Connect4 Data Structure using a 2D-array

In this blog post you will use HTML, CSS, and JavaScript to complete this game of connect 4 for two players. (Rules of the game) You will first need to reverse-engineer the code provided. The code so far is used

Cinema Booking Challenge

A cinema has created a booking system for their main theatre which consists of 48 seats, organised in 6 rows of 8 seats. To store information as to whether a seat is booked or available, the program uses a 2-dimensional

Battleship Challenge

Battleship Grid Initialisation Algorithm

For this challenge we are not going to recreate a full battleship game. Instead we are going to focus on randomly placing the ships on the grid using an algorithm. The code given below uses Python Turtle to draw the