Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.cmm.msu.ru/trac/snake/changeset/2c9ca13b4413864e844fd38ed000ebb592b43242/engine.py?old=f25c0439251f3fef91d694e3761e7fc0de531afa&old_path=%2Fengine.py
Дата изменения: Unknown
Дата индексирования: Sun Mar 2 00:07:45 2014
Кодировка: IBM-866
Diff [f25c0439251f3fef91d694e3761e7fc0de531afa:2c9ca13b4413864e844fd38ed000ebb592b43242] for engine.py тАУ Python Battle

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • engine.py

    r10 r9 €а
    6666        snake.legal_dir = []€а
    6767        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]]€а
    6969            if (dir_cell.type == 'empty' or (dir_cell.type == 'tail' and dir_cell.snake == 'enemy')):€а
    7070                snake.legal_dir.append(direction)€а
Note: See TracChangeset for help on using the changeset viewer.