There is no need to actually distinguish the pieces. An LCD and some buttons act as a chess clock, and note if a move is illegal. The Arduino has a pretty basic chess algorithm known as Micro Max ...
The FIDE Candidates Chess Tournament witnessed a bizarre moment when India's Gukesh D drew against Ian Nepomniachtchi of Russia when the clock malfunctioned. After that, Gukesh agreed to a draw ...