16
votes
6answers
2k views

Elegant solution for coloring chess tiles

I am re-developing a chess game I wrote in Java, and was wondering if there is an elegant algorithm to color chess tiles on a numbered chess board. Right now my solution uses if else statements to ...