Mercurial > mamba
changeset 312:8a6ef789bd45
Cap at three moves, not two.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 16 Sep 2011 18:42:37 +0200 |
parents | 3b7288064935 |
children | c050e8d9e0e6 |
files | mamba/snake.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mamba/snake.py Fri Sep 16 18:38:17 2011 +0200 +++ b/mamba/snake.py Fri Sep 16 18:42:37 2011 +0200 @@ -99,7 +99,7 @@ def send_new_direction(self, orientation): self._orientation_changes.append(orientation) # Cap queue length: - self._orientation_changes = self._orientation_changes[:2] + self._orientation_changes = self._orientation_changes[:3] def _pop_orientation_queue(self): while self._orientation_changes: