There is no better way to master electronics than building and programming your own robots. This 3D Printed Chess Robot by Richard Day is a project that can inspire you to come up with your own fun RPi robots. It uses a visual recognition system to detect human moves. No special chessboard hardware needed.
The Raspberry Pi code for this robot is written in Python 3. The chess engine is Stockfish. The developer used an Arduino Mega 2560, RPi 3 Model B, Ramps 1.4, NEMA 17 stepper motors, HP webcam HD 2300, and a few other simple components to complete this.