White Hat Gaming interview question

Implement a chess game in java/scala