A computer can choose a checkers move without ever touching a checker. Gregory (gregg) and Ewelina (rukia), who described themselves as engineering students at AGH UST in Cracow, wanted an opponent that could play across a real board. Their Automatic Checkers project on Hackaday.io joins an overhead phone camera, a game-playing program and a LEGO crane that picks up the computer’s pieces.
The project was created on April 27, 2014, and its final-version log followed on April 29. Those dated entries document a completed build, rather than a newly launched effort; the team also supplied a demonstration video.
The camera turns circles into a board state
The robot doesn’t need a specially wired board. An Android phone running IP Webcam supplies images to the host computer, with the phone mounted overhead and its built-in LED providing light.
The useful simplification is that checkers look roughly circular from above. As the board-recognition log explains, the Python/OpenCV pipeline first crops and transforms the board into a fixed 600 × 600-pixel square, then splits it into individual playing squares. That gives the software a consistent set of places to inspect rather than an entire scene to interpret.
Within each square, median and Gaussian blur precede Canny edge detection and a Hough circle search. If the software finds a circle, it thresholds the image and uses the white-pixel content to classify the piece as black or white. The result is an array of occupied and empty squares that the game logic can use. Ewelina designed this recognition algorithm; Gregory implemented it.
The game engine chooses; the crane carries
The game software checks whether the human’s move is legal before calculating its reply. Its alpha-beta search has a selectable depth of five to eight, using a heuristic that rewards progress toward promotion, values kings more highly and penalizes pieces exposed to capture.
The creators reported that they had never beaten it. That’s a claim about their own games, not a measured playing-strength rating, but it gives the mechanism a purpose beyond moving pieces through a scripted demonstration: the human is playing against a searching opponent.
Ewelina designed and built the physical robot using two LEGO NXT sets, train tracks and pneumatics. Rather than use a jointed arm, the machine constrains its motion along straight axes. Motors drive ropes to move the board and carriages; the NXT motors’ built-in encoders provide position information, while endstops establish the axes’ zero positions.
The gripper tackles a different problem: getting a checker past the other pieces. One pneumatic cylinder holds the piece, and two others lift it above its neighbors before it travels to another square. The crane log also describes an automatic pump with a pressure switch. When the team ran out of LEGO touch sensors, they wired an ordinary switch into an NXT cable so the controller could detect its state.
That division of labor is the build’s most useful mechanical idea. Tracks constrain horizontal travel, encoders measure movement, endstops establish a reference, and pneumatics handle gripping and clearance. No single mechanism has to do everything.
Two software environments meet at a simple boundary
Gregory wrote the computer and robot software. Python handles vision, gameplay and a PyQT interface built with Qt Designer; the interface displays the camera feed, move history and controls. LabVIEW with the NXT toolkit handles the LEGO hardware, communicating with the main application over TCP/IP.
The team’s workflow log describes regular meetings, independent work between them and joint tests of the game and robot algorithms. This matters in a system whose useful output crosses several boundaries: an image becomes a board state, a board state becomes a move, and that move becomes physical motion.
The logs leave one especially interesting question for anyone adapting the design: how should the system confirm that a commanded move actually left the pieces where expected? The excerpts describe recognition and motion, but don’t explain a post-move verification or recovery routine. Choosing a strong move is one achievement; making the physical board reliably agree with the software is the next robotics problem worth examining.
Source: Automatic checkers