i have written a check that goes: "if a and b and (c or d)" with the relevant variables color coded in the image. all four of them are the expected values and should all be true i wanted to implement castling in my (admittedly poorly and messly coded) python chess recreation, i expected it to recognize the attempt at castling through the four checks and then move on to check if there are pieces in the way Continue reading...