More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
Python IDE Dashboard
Author: Administrator

Pacman Ghost Algorithm

In a game of Pacman a specific algorithm is used to control the movement of the ghosts who are chasing (running towards) Pacman. For this challenge we will assume that ghosts can walk through walls (as ghosts do!). So we

Bouncing Algorithm

Bouncing algorithms are often used in arcade games such as Pong or Breakout. To understand how to implement a bouncing algorithm, it is essential to understand how the computer controls the trajectory of a sprite (e.g. ball) on the screen.

Closest Player Detection Algorithm

Have you ever noticed when playing a team sport video game such as a (football, basketball, rugby game, etc.) the computer often finds out who the closest player to the ball is so that you can run to the ball

Random Background Generator

In this challenge we will use a Python script (using Python Turtle) to generate a random background for a 2D video game. To create a mountain range skyline we will use two different approaches: Using a polynomial function Using a

Oblique Projection Formulas

The aim of this challenge is to demonstrate how the oblique projection formulas are used to convert 3D coordinates (x,y,z) into 2D coordinates (x,y). The oblique projection formulas are essential to understand how 3D models are displayed on a 2D

RISC and CISC Processors

RISC and CISC are two computers architectures that are used by CPUs. Complete this drag and drop activity to highlight the characteristics of RISC & CISC processors. instructions several Complex Reduced Software circuitry 1 Desktop simpler Embedded devices Many clock

Parallax Scrolling Effect

2D arcade video games often use a frame based approach. This means that the screen is refreshed every so often (for instance every 20 milliseconds). This enables to animate the Graphical User Interface of the game making the game more

Layer Cake using Python Turtle

In this challenge we will use Python Turtle to create and draw a layer cake. The code provided at the bottom of this blog post is using a few computing concepts such as: A list to store the parameters of

Computing Operators – Take the Quiz!

While programming with high-level languages such as Python, you will use four different types of operators as follows: The assignment operator ( = ) which is used to assign a value to a variable or a constant. Arithmetic operators (

Understanding Memory Address Modes

There are many ways to locate data and instructions in primary memory and these methods are called “memory address modes”. Memory address modes determine the method used within the program to access data either from the Cache or the RAM.