Mathspp Blog

pygame — Articles that use the Python module pygame to create games, visualisations, and more

With a couple of loops and a bit of maths you can create a rotating spiral.

Create a zooming animation from first principles in Python. In 5 minutes. Kind of.

Create animations from first principles and morph between different figures with Python. In 5 minutes. Kind of.

Today I learned how to draw a Bézier curve with the De Casteljau's algorithm.

I have always loved solving mazes... so naturally I had to write a program to solve mazes for me!

HueHue is a very colourful game I wrote with my colleague @inesfmarques.

Think of a drunk man that continuously tumbles left and right, back and forth, with no final destination.

The filled Julia set is a really cool fractal that kind of resembles the Mandelbrot set!

I have always liked the concept of fractal. They are very beautiful, they have a notion of infinity embedded in them, and they make no sense (seriously though, self-similarity?). How could they not be loved?

This blog post has a single purpose, which is to show you the weird game I made, inspired by Flappy Bird and my crazy English teacher.

Minesweeper has to be one of the most well-known minigames of all time, no? I spent my fair share of Sunday mornings playing minesweeper in my Windows XP computer...