Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.cmm.msu.su/trac/snake/changeset/36
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 01:16:36 2016
Кодировка: IBM-866
Changeset 36:639470c54107 тАУ Python Battle

Changeset 36:639470c54107


Ignore:
Timestamp:
12/19/10 22:25:27 (5 years ago)
Author:
Daniil Alexeyevsky <me.dendik@тАж>
Branch:
default
Message:

snake.Rule.load: added check that rules are exactly 7 lines long

File:
1 edited

Legend:

Unmodified
Added
Removed
  • snake.py

    r35 r36 €а
    5353            if y == 0 and line == '':€а
    5454                continue€а
    €а55            if y == 7:€а
    €а56                break€а
    5557            assert line[-1] == ';', "Rule lines must end with semicolon"€а
    5658            assert len(line) == 8, "Rule lines must be exactly 7 chars long"€а
Note: See TracChangeset for help on using the changeset viewer.