Changes in [72:abd610462b02:74:66a80dc7306d]
Legend:
- Unmodified
- Added
- Removed
-
snake.py
r70 r73 €а 95 95 Cell is defined by one character.€а 96 96 """€а 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€а 98 100 cell = engine.Cell(x, y, self.snake)€а 99 101 if char in 'htb':€а 100 €а if char.islower():€а€а 102 if is_my:€а 101 103 cell.snake_type = 'my'€а 102 104 else:€а тАж тАж €а 106 108 if (x, y) == (3, 3):€а 107 109 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]€а 109 111 self.pattern[x, y] = cell€а 110 112 €а
Note: See TracChangeset
for help on using the changeset viewer.