White Hat Gaming interview question

Implement a chess game in Scala