Raspberry Pi Pico Chess Robot cheats, insults you, and loves Stockfish

Play chess against a Raspberry Pi-powered robot that cheats and insults you with AI.

Raspberry Pi Pico Chess Robot cheats, insults you, and loves Stockfish
Published by Noah @ PC Game Spotlight 2 years ago


PiChess: A Chess Robot Powered by Stockfish

What better way to troll your friends than by playing chess against them using a Raspberry Pi Pico Chess Robot that cheats and insults you during the game? Developer Noah Davis uses ChatGPT, a natural language processing library, to make the AI sassy during matches, insulting players as it works to defeat them.

The project uses Hall effect sensors and magnets to track the position of the chess pieces on a physical chessboard. A robotic arm, controlled by Raspberry Pi Pico, moves the pieces. Davis also uses a Python script, which connects to Stockfish, an open-source chess-playing app, to help the AI cheat.

Davis shares the project’s construction details in a recent Raspberry Pi blog post. The Pi connects to Stockfish via a serial connection to transmit the arm position. The chess app uses this information, along with the Pi’s processing power, to move the pieces.

The chessboard utilises LED lights to indicate whose turn it is to play. Davis says that the project is still in its early stages, and he plans to create more detailed videos in the future, including an explanation of the code and chess moves.

Check out the chess robot in action below:

Play chess against a virtual opponent with the Raspberry Pi Pico Chess Robot. Watch the AI insults and cheating in action – and the robotic arm, of course.

You can also check out the project’s construction details on the official Raspberry Pi blog.

Featured image: Raspberry Pi Pico Chess Robot. Photo via Noah Davis.

Similar Articles