Pergunta de entrevista da empresa Citadel

What is the game logic if you were to create a chess game in Java