I recently read a fascinating thesis about nematodes. Nematodes are the most abundant multicellular organisms on the planet and there are around 40 quintillion of them. Inspired by the humble nematode, I wrote two programming lab tests.
This one is for fourth year Games Engines students and it uses C# and Unity to create a simulation of a school of nematodes swimming and wriggling and avoiding each other:
As part of an ongoing drive to make more games as part of the courses I teach, I present YASC. YASC is an implementation of the classic SpaceWar game first programmed by Steve Russell at MIT in 1961. In my version, there are two player controlled spaceships. The left (red) player uses the WAD keys to maneuver, S to shoot and E to activate the hyperdrive. The right (green) player uses IJL to move, K to shoot and O to hyperdrive. Each player starts with 5 lives and the winner is the player who is still alive at the end of the game. Gravity affects the ships and the lazers. Fun to play and even more fun to make in Processing!