Inline graphics on this page: 7K

Last update: 3 November 1999
Copyright (C) 1999 Pitronics

Back to the Egg Hunt home page

Simulating an Egg Hunter

I wrote this little simulator package to study the possibilities of my own Egg Hunter (Jaws), which uses weighted random search patterns. Compared to the (also simulated) baseline behaviour - just a random bounce away from Playground border, Obstacles and gathering corner - the simulated Jaws now finds the five Eggs in about one third of the time. Over 100% better than what I started with!

Ben Hitchcock added simulations of his Psyclone and an idealised long range Egg sensing `bot called Spoof.

I hope others will find this package useful for simulating the behaviour of their own Egg hunters. Of course that means writing a little C(++), but things are organized to make that easy, as you can see in the documentation.

Simulated Jaws in action

Above you see what the simulator looks like in the Linux/X11 operating system. The Playground border and Obstacles are green, the gathering corner is black, the Eggs are red and Jaws himself is blue. The blue line traces his path.

There are four packages available, each containing the source code, the documentation and one or more executables. The following three are intended for compilation with either gcc (Linux) or djgpp (the Dos-version of gcc). The grx graphics library is used, of which there are also versions for Linux and Dos.

JawSimu for gcc or djgpp, packaged in a self-extractor and including three 32-bit Dos executables, which also runs in a Windows Dosbox. CWSDPMI included, in case you want to run it on plain old Dos.

JawSimu for gcc or djgpp, including three dynamically linked executables for Linux/X11. The grx graphics library must be installed before you can run it, but of course you need that anyway if you want to modify the software to simulate your own Egg Hunter.

JawSimu for gcc or djgpp, including a statically linked executable (Jaws) for Linux/X11. You can run this without first installin the grx library, but the executable weighs over 700K (instead of 90K for the dynamic version).

JawSimu for Turbo-C, packaged in a self-extractor and including three 16-bit Dos executables, which also runs in a Windows Dosbox. Easiest if you happen to have Turbo-C installed.

Soon to appear: A package which compiles and runs on a Mac, prepared by Ben Hitchcock.

Enjoy!

Back to the Egg Hunt home page