mphair/abstrat — Issue #2: crashes in command parsing in client
Author: mphair
Created: 2011-11-02 05:59:11+00:00
State: open

The whole command parsing thing is fragile as all get out. At least it shouldn't crash when you enter the wrong args :)

```> teach movement+1

Traceback (most recent call last):

File "client.py", line 214, in

AbstratRESTClient().Play(serverAddress, port, team, t)

File "client.py", line 196, in Play

playing = self.GetCommands()[command[0]](command, currentEntity)

File "client.py", line 47, in PlayerTeach

if command[4] == entity.Name.lower():

IndexError: list index out of range
```