Game Engine do jogo snakes

Para uso no projecto de grupo de IIA/IA

Issue tracking

open closed Total
Bug 1 0 1
Funcionalidade 0 0 0
Suporte 0 0 0

View all issues

iia-ia-snakes__git: README

# Requirements:
- 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

# Agent Class naming:

The Student agent class must live in a file with the same name as the class, example:

StudentAgent ->

# Network Game:

A remote player (will not get video output) will play against a local player

step 1: (server) - python3 8765
step 2: (REMOTE player being proxied) - python3 -p -s Agent1,remoto,ws://server:8765
step 3: (LOCAL player hosting the game) - python3 -s Agent1,local -o NetAgent,remoto,ws://server:8765

Don't forget about firewalls and ports!

There is a public server: ws://

# Practice against other agents

A game server has been setup where agent can meet dinamicaly and play against each other (no visual interface)

just run the script: AgentClassName AgentName

# How to configure a remote repository (get updates from the teachers repository)

Since you probably cloned the professors repository and created your own repository, you need to configure a a remote repository:

git remote add upstream

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)