Pregunta de entrevista de Bank of America

How would you code a chess board game ?