This Python + Pygame program draws the trace of 4 decaying sine waves, 2 per axis, with rainbow colours. It … More

# Tag: simulation

# Number guessing game

The number guessing game incorporates several simple but important elements of elementary programming and is a good candidate for an … More

# Drawing Fractals with Lindenmayer Systems

Lindenmayer systems, or L-systems, provide a very powerful way to construct fractals. Lindenmayer used L-systems to describe the behaviour of … More

# A Graphical Dice Simulator

This PyGame program simulates the roll of a die (or dice if you prefer). It’s a fairly simple, straightforward thing … More

# Extensible Harmonograph

Often seen in science museums, the harmonograph is a device that combines wave motions (e.g. from some pendulums) to move … More

# Dr. Turing’s Automatic Machine

Alan Turing published a ground-breaking paper in 1936, On computable numbers, with an application to the Entscheidungsproblem (PDF). It was about … More