MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / drawPieces

Function drawPieces

Chess_Game/ChessGame.py:121–126  ·  view source on GitHub ↗
(screen, board)

Source from the content-addressed store, hash-verified

119 p.draw.rect(screen, color, p.Rect(c*SQ_SIZE, r*SQ_SIZE, SQ_SIZE, SQ_SIZE))
120
121def drawPieces(screen, board):
122 for r in range(DIMENSIONS):
123 for c in range(DIMENSIONS):
124 piece = board[r][c]
125 if piece != "--":
126 screen.blit(IMAGES[piece], p.Rect(c*SQ_SIZE, r*SQ_SIZE, SQ_SIZE, SQ_SIZE))
127
128def animatedMoves(move, screen,board, clock):
129 global colors

Callers 2

drawGameStateFunction · 0.85
animatedMovesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected