Tripadvisor Interview Question

Implement a terminal-based chess game.