https://github.com/andreasnel/pirates
Project that aims to simulate a distributed computing system for the COS786 module at the University of Pretoria.
https://github.com/andreasnel/pirates
Last synced: 3 months ago
JSON representation
Project that aims to simulate a distributed computing system for the COS786 module at the University of Pretoria.
- Host: GitHub
- URL: https://github.com/andreasnel/pirates
- Owner: AndreasNel
- Created: 2018-05-19T10:21:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T17:29:53.000Z (about 7 years ago)
- Last Synced: 2025-01-30T12:11:59.144Z (4 months ago)
- Language: Python
- Size: 26.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pirates
Project that aims to simulate a distributed computing system for the COS786 module at the University of Pretoria.## Requirements
This project depends on the `rpyc` library. Run `pip3 install -r requirements.txt` in order to install the library. It has been developed to work on an Ubuntu distribution where the primary Python version is 3.6## Executing the system
In order the correctly execute the system, the user should execute each of the following commands in a separate shell, in the specified order.1. `python3 registry_server.py` - Starts up the Registry Server that tracks the different agents. This server should be started on a computer where the server is allowed to broadcast on the network (if everything is ran on the same computer, it should work by default).
2. `python3 quarter_master.py` - Starts the `QuarterMaster` service which is used to communicate with `rummy`. It is important that this file is in the same directory as the `rummy.pyc` file.
3. `python3 pirate.py` - Starts up a `Pirate` service. This command should be run in a separate shell for each pirate that the user requires. At least two instances of the `Pirate` service are required.
4. `python3 main.py` - Starts the entire process, starting with the waking of Rummy and the gathering of clues.