Bank of America Interview Question

How would you code a chess board game ?