Domanda di colloquio di Bank of America

How would you code a chess board game ?