Bank of America interview question

How would you code a chess board game ?