Planet Wator

Planet Wator is a Darwinian place. There are only two different animals on the planet, sharks (red squares) and fish (green squares). Sharks can eat fish, but sharks will starve to death after a set number of turns if they are not fed. Fish don't eat or starve. Both animals will breed after a specified number of turns. It's a system of checks and balances.

This Java applet was homeworks 3 and 5 in Programming for the WWW, summer 1996.

source code