White Hat Gaming Interview Question

Implement a chess game in java/scala