Ive been trying to make a chess game in Pygame and ive managed to draw the board, and all the pieces. Now im moving onto detecting if a piece has been clicked, but it says the piece has been selected in all the column (BISHOP)
def detectClick():
pos = pygame.mouse.get_pos()
if (0,0) <= pos <= (50,50):
print('bb')
Ive tried math, but to no success. I have no clue as to why this bit isnt working