Changes in engine.py [10:f25c0439251f:9:2c9ca13b4413]
Legend:
- Unmodified
- Added
- Removed
-
engine.py
r10 r9 €а 66 66 snake.legal_dir = []€а 67 67 for direction in directions:€а 68 €а dir_ cell = field[snake.cells[0].y + direction[0], snake.cells[0].x + direction[1]]€а€а 68 dir_sell = field[snake.sells[0].y + direction[0], snake.sells[0].x + direction[1]]€а 69 69 if (dir_cell.type == 'empty' or (dir_cell.type == 'tail' and dir_cell.snake == 'enemy')):€а 70 70 snake.legal_dir.append(direction)€а
Note: See TracChangeset
for help on using the changeset viewer.