Skip to content
/ Wator Public

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".

Notifications You must be signed in to change notification settings

Sledro/Wator

Repository files navigation

Wator

Software Development Year 4 Project
Concurrent Device Development Module
Continous Assessment 1
Daniel Hayden & Frank Rooney

See more information about the project below the image: My image

Problem

Re-create the famous Wa-Tor program in Serial C++ then Concurrently

Read the original Wator Project paper here: https://github.com/josephkehoe/CDD101/blob/master/Concurrency/project/wator_dewdney%20(1).pdf

Setup

We decided to use the SFML graphics library over just OpenGL alone as it gives more options.

To install SFML on UBUNTU:

sudo apt-get install libsfml-dev

Download SFML, Open the downloaded directory in terminal, enter:

$ sudo cp -r include/SFML /usr/include
$ sudo cp -r /lib/* /usr/lib
$ sudo cp -r share/SFML /usr/share

This will add the libraries to your HDD and allow you to comiple the Wator program.

Run Program

To compile the program, open the repo in the command prompt and type "make"

To clean/remove the object files type "make clean"

To run the program once compiled, type "./main"

To install profiling tools:

sudo apt-get update
sudo apt install valgrind
sudo apt install kcachegrind

see profile.sh for more info

To run the profiling tools:

chmod 755 ./profile.sh first to run this file via command line.
Enter "./profile.sh" in the terminal to run
This file will clean, build and run the program and produce a valgrind profiling report
on compleation the valgrind report can be viewed with kcachegrind GUI tool

Branches

Master = Serial Multithreadded = Parallel

About

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".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published