Yahoo interview question

Design a chess game.