Wa-Tor is a population dynamics simulation devised by Alexander Keewatin Dewdney and presented in the December 1984 issue of Scientific American in a 5-page article entitled "Computer Recreations: Sharks and fish wage an ecological war on the toroidal planet Wa-Tor".
- Ubuntu 16.04 LTS - The OS used
- SFML - The graphics library
- C++ - The programming language
- g++ - The compiler
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
SFML Simple and Fast Multimedia Library is used to display the simulation.
Instructions on how to install SFML on a Linux system can be found here.
Clone the repo
git clone https://github.com/marcuskelly/Wator.git
Change into Wator directory
cd Wator
Compile the program
make
Run the program
./start
Benchmarking was carried out using a HP Notebook:
- System Type- 64-bit OS, x64-based processor
- Processor- Intel(R) Core(TM) i5-6200U, CPU @ 2.30GHz
- RAM- 8.00 GB
The speed of the each iteration was measured in contrasting grid sizes. The grid sizes used are 40 x 40, 80 x 80, 160 x 160, 320 x 320. Statistics were collected for 5000 iterations for each grid size. This data is as follows:
OpenMP was integrated into the application. Using the same machine stated above, the following statistics were observed.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details
Thanks to Karl Redmond and Ger Dobbs for their help getting SFML working on the MakeFile.