Project presented in Artificial Intelligence class (Universidade de Aveiro), 2016.
The main goal is to create an agent capable of grab the food and/or kill the other agent, with hard time limitations that prevent them to use A* to calculate the optimal path.
- Python 3.5 (carefull! 3.4 will not work!)
- Create a virtualenv: virtualenv -p /usr/bin/python3.5 venv source venv/bin/activate
- Install requirements.txt pip install -r requirements.txt
The Student agent class must live in a file with the same name as the class, example:
StudentAgent -> studentagent.py
A remote player (will not get video output) will play against a local player
step 1: (server) - python3 netserver.py 8765 step 2: (REMOTE player being proxied) - python3 start.py -p -s Agent1,remoto,ws://server:8765 step 3: (LOCAL player hosting the game) - python3 start.py -s Agent1,local -o NetAgent,remoto,ws://server:8765
Don't forget about firewalls and ports!
There is a public server: ws://barbrady.av.it.pt/snakes
A game server has been setup where agent can meet dinamicaly and play against each other (no visual interface)
just run the script:
treino.sh AgentClassName AgentName
Since you probably cloned the professors repository and created your own repository, you need to configure a a remote repository:
git remote add upstream https://code.ua.pt/git/iia-ia-snakes
Now you can fetch from the upstream and merge with your repository:
git fetch upstream
git checkout master (or other branch)
git merge upstream/master (or other branch)
Diogo Ferreira
Luís Leira