MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / isCompleteLine

Function isCompleteLine

src/gamesbyexample/pygame_games/pentomino.py:635–640  ·  view source on GitHub ↗
(board, y)

Source from the content-addressed store, hash-verified

633 return True
634
635def isCompleteLine(board, y):
636 # Return True if the line filled with boxes with no gaps.
637 for x in range(BOARDWIDTH):
638 if board[x][y] == BLANK:
639 return False
640 return True
641
642
643def removeCompleteLines(board):

Callers 1

removeCompleteLinesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected