Skip to content

amun-nx/MAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# IN512_Project ## Install Pygame Pygame is a python package used to generate the simulated environments of this project. If not yet installed, open a terminal and run the following instruction: ```bash pip install pygame #On Windows pip3 install pygame #On MAC OS ``` If you have any difficulty with the installation, please call your teacher. ## Git ### Install Git Git is a tool used for source code management. You can use it to create your own version of the project and share it with your group members. GitHub will be used to host your repository.
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages