MCPcopy
hub / github.com/grantjenks/free-python-games / done

Function done

tests/mockturtle.py:129–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127
128
129def done():
130 for event in events:
131 name = event[0]
132
133 try:
134 function = state[name]
135 except KeyError:
136 if name == 'timer':
137 if event[1:] and event[1]:
138 continue
139 raise
140
141 if name == 'timer':
142 del state['timer']
143 del state['delay']
144 args = ()
145 else:
146 args = event[1:]
147
148 function(*args)

Callers 15

flappy.pyFile · 0.85
tron.pyFile · 0.85
memory.pyFile · 0.85
ant.pyFile · 0.85
simonsays.pyFile · 0.85
tiles.pyFile · 0.85
paint.pyFile · 0.85
avoid.pyFile · 0.85
bounce.pyFile · 0.85
snake.pyFile · 0.85
connect.pyFile · 0.85
maze.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected