MathWorks Interview Question

Object oriented design for chess game