amun-nx/MAS
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
To check if git is already installed on your computer, open a terminal and enter: **git**. If an error appears, you have to install it using [this link](https://git-scm.com/downloads). ### Configure git for GitHub If you planned to create your own GitHub repository for this project, [create a GitHub account](https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F&source=header-home) if you don't already have one.
Once the account is created, open a terminal to enter details about your GitHub account so that git will be able to manipulate your future projects: ```bash git config --global user.name "Your GitHub username" git config --global user.email "The email address used when you created your GitHub account" ``` ## Clone the repository To have a local version of this GitHub repository, you have to clone it. Run the following instructions in a terminal: ```bash cd your_desired_path git clone https://github.com/AybukeOzturk/In512_Project_Student ``` ## Instructions to run the scripts ### Run the application with 2 agents, locally 1. Run the server ```bash python scripts/server.py -nb 2 #On windows python3 scripts/server.py -nb 2 #On MAC OS ``` 2. Open two other terminals and run, **for each of them**, the following instruction: ```bash python scripts/agent.py #On windows python3 scripts/agent.py #On MAC OS ``` Once both terminals run the agent script, the environment should appear. ### Run the application with 2 agents on several computers 1. Run the server on one of the computers by specifing its ip address (for instance if the computer's ip address is 10.9.157.250): ```bash python scripts/server.py -nb 2 -i 10.9.157.250 #On windows python3 scripts/server.py -nb 2 -i 10.9.157.250 #On MAC OS ``` 2. On each computer, run one of the agents as follow: ```bash python scripts/agent.py -i 10.9.157.250 #On windows python3 scripts/agent.py -i 10.9.157.250 #On MAC OS ``` Once both terminals run the agent script, the environment should appear on the computer that hosts the server.# MAS # MAS