def showUnknownPieces(self): for i in range(4): image.Piece(self.window, 194 + 32 * i, 136, 12) if self.game.isAIPlaying(0): for i in range(4): image.Piece(self.window, 932 + 32 * i, 132, 12) if self.game.isAIPlaying(1): for i in range(4): image.Piece(self.window, 194 + 32 * i, 448, 12) if self.game.isAIPlaying(2): for i in range(4): image.Piece(self.window, 932 + 32 * i, 444, 12)
def showPieces(self): for i in range(4): image.Piece(self.window, 194 + 32 * i, 136, self.game.getPieces(0)[i]) if self.blocked_piece[i]: image.pieceBlocked(self.window, 194 + 32 * i, 136) if self.game.isAIPlaying(0): for i in range(4): image.Piece(self.window, 932 + 32 * i, 132, self.game.getPieces(1)[i]) if self.game.isAIPlaying(1): for i in range(4): image.Piece(self.window, 194 + 32 * i, 448, self.game.getPieces(2)[i]) if self.game.isAIPlaying(2): for i in range(4): image.Piece(self.window, 932 + 32 * i, 444, self.game.getPieces(3)[i])