Feb-21-2021, 05:44 AM
Nevermind, I figured it out.
Thanks everyone.
color = [chess.BLACK, chess.WHITE] square = [chess.A7, chess.C7] a = 1 attackers = board.attackers(color[a], square[a])If anybody else ever wants to do this, here's how I did it. It will accept a slice or an integer, but not an immutable object like a string, which was the problem I was having.
Thanks everyone.