Pergunta de entrevista da empresa MathWorks

Give the OOP approach for a chess game.