5 Best Ways to Determine the Color of a Chessboard Square using Python
π‘ Problem Formulation: Chessboard squares alternate in color between light and dark. Given an input in the form of a chessboard square identifier (e.g., ‘a1’, ‘d5’), we want to programatically determine whether that square is light or dark. The desired output would be a string “light” or “dark”. Method 1: Using Basic Arithmetic and Modulus … Read more