Tripadvisor interview question

Implement a terminal-based chess game.