Sharks & Fish

Here are the rules in brief, with more details available here.
  • Sharks and Fish 1. Fish alone move continuously subject to an external current and Newton's laws.
  • Sharks and Fish 2. Fish alone move continuously subject to gravitational attraction and Newton's laws.
  • Sharks and Fish 3. Fish alone play the "Game of Life" on a square grid.
  • Sharks and Fish 4. Fish alone move randomly on a square grid, with at most one fish per grid point.
  • Sharks and Fish 5. Sharks and Fish both move randomly on a square grid, with at most one fish or shark per grid point, including rules for fish attracting sharks, eating, breeding and dying.
  • Sharks and Fish 6. Like Sharks and Fish 5, but continuous, subject to Newton's laws.
  • The following software for these problems exists. It can be seen by clicking on the x's below. In each case you will see a directory of source code for each problem. In the case of the Matlab code, the routine fishXinit.m is an initialization program, to be run first to set up the problem (where X varies from 1 to 5), and fishX.m is the main Matlab solution routine.

    	Language	Problem number
    			1	2	3	4	5	6
    	Matlab		x	x	x	x	x
    	CMMD		x	x	x
    	CMF		x	x	x	x
    	Split-C		x	x	x	x
    	Sun Threads	x	x
    	pSather						x