Changeset 23:c74a9885bf04
- Timestamp:
- 12/04/10 23:44:37 (5 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Automata.py
r20 r23 2 2 3 3 class Automata(object): 4 #field[][] - Ն膒 膃4 #field[][] - state symbol 5 5 #states[] 6 #symbols = {} - : 冐__states6 #symbols = {} - symbol: number_in_states 7 7 8 8 def __init__(self, width, height, states=None): -
State.py
r22 r23 2 2 3 3 def __init__(self, name, symbol, color, nums): 4 #name - 솃5 #symbol -6 #color - 冒 ᆐ膃,7 #nums - 膃 冐冲 - 膑 膇 094 #name 5 #symbol 6 #color 7 #nums - next step ondition, list with numbers from 0 to 9 8 8 9 9 self.name = name 13 13 14 14 def next_state(self, num): 15 #num - 膑 ꆐ膲 冒 15 #num - number of cells with the same state 16 16 return num in self.nums 17 17
Note: See TracChangeset
for help on using the changeset viewer.