Topics › Environment

Sugarscape with Canvas

Below is an implementation of the Sugarscape simulation I made using the HTML canvas. It shows a 50x50 grid with each square containing between 0 and 4 units of sugar represented with different intensities of green. There is an initial population of 200 agents (red circles) which move about and eat the sugar.

Sugarscape revisited

Screenshot of my Sugarscape simulation

I can't believe it's over a year since I last wrote about creating a Sugarscape simulation in Python and Pygame. The page attracted a fair number of views, but I suspect several visitors were looking for the teen magazine. However, at least some of the visitors were genuinely interested and a couple of weeks ago I was contacted by someone interested in recreating Sugarscape in Python.

Project:

Environment Simulation

A simulation of an environment and weather system in which cells might live.

Martian landscape photography

Here’s an interesting mixture of science and photography: high-resolution photos of various Martian landscapes. I was quite surprised at how varied the environment is (though it should be noted that the images have been pseudo-coloured). Maybe I shouldn’t have been so surprised; earth’s landscapes would still be very varied without life. It just goes to show that beauty and complex patterns are not exclusive to life.