Qualcomm Interview Question

design a chess game