Chess Board Squares

Published by Mubashir Hassan in

Create a function that takes a chess board square's coordinate and return its color.

Alternative Text

Examples

chess_board("a1") ➞ "black"

chess_board("e5") ➞ "black"

chess_board("d1") ➞ "white"

Notes

N/A

Watch a quick demo on how Edabit works.