Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.cmm.msu.ru/trac/snake/changeset/66a80dc7306de5da82810f63f5ee2bcd35942e2a/?old=abd610462b025cc2170d03a0052d273878b9c11a
Дата изменения: Unknown
Дата индексирования: Sat Mar 1 23:44:14 2014
Кодировка: IBM-866
Diff [abd610462b025cc2170d03a0052d273878b9c11a:66a80dc7306de5da82810f63f5ee2bcd35942e2a] for / тАУ Python Battle

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • snake.py

    r70 r73 €а
    9595        Cell is defined by one character.€а
    9696        """€а
    97€а        assert char.lower() in self.codes, "Illegal symbol in rule: %s" % char€а
    €а97        is_my = char.islower()€а
    €а98        char = char.lower()€а
    €а99        assert char in self.codes, "Illegal symbol in rule: %s" % char€а
    98100        cell = engine.Cell(x, y, self.snake)€а
    99101        if char in 'htb':€а
    100€а            if char.islower():€а
    €а102            if is_my:€а
    101103                cell.snake_type = 'my'€а
    102104            else:€а
    тАж тАж €а
    106108        if (x, y) == (3, 3):€а
    107109            assert char == 'h', "In the center of rule must be own head"€а
    108€а        cell.type = self.codes[char.lower()]€а
    €а110        cell.type = self.codes[char]€а
    109111        self.pattern[x, y] = cell€а
    110112€а
Note: See TracChangeset for help on using the changeset viewer.