MCPcopy Create free account
hub / github.com/ActiveState/code / remove_line

Function remove_line

recipes/Python/580680_Tetris/recipe-580680.py:106–109  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

104 return True
105
106 def remove_line(y):
107 global shaft, width
108 del shaft[y] # cut out line
109 shaft.insert(0, [ empty ] * width) # fill up with an empty line
110
111 for y in range(height):
112 if line_full(shaft[y]):

Callers 1

remove_full_linesFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected