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

Function loadImages

Chess_Game/ChessGame.py:16–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14p.display.set_caption("Chess Game")
15
16def loadImages():
17 pieces = ['wp', 'wR', 'wN', 'wB', 'wQ', 'wK', 'bp', 'bR', 'bN', 'bB', 'bQ', 'bK' ]
18 for piece in pieces:
19 IMAGES[piece] = p.transform.scale(p.image.load("images/" + piece + ".png"), (SQ_SIZE, SQ_SIZE))
20
21def main():
22 p.init()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected