Warcabot — checkers-playing robot
robotics · 07.2026
A robotic cell where a six-axis Comau Racer 3 plays a full game of checkers against a human — with machine vision, a mapp View panel and an AI engine over OPC UA.

- role
- Team leader (6 people)
- stack
- B&R Automation Studio · Structured Text · mapp Motion · mapp Vision · mapp View · Comau Racer 3 · OPC UA · POWERLINK · C / Python
- code
- github.com/Zaworek03/Warcbot (opens in new tab)
Warcabot is an automated cell where a six-axis Comau Racer 3 industrial robot plays a full game of checkers against a human. The player chooses moves only on a touch panel, while every physical action on the board — moving pieces, captures and placing captured pieces in a buffer — is done by the robot. A camera continuously verifies piece positions and the correctness of each move.

My role
I was the leader of a 6-person team. I managed the whole project workflow: assigning tasks, tracking progress and merging the code from all team members into one working application.
How it works
Each move takes three steps:
- The player picks a move on the screen — only moves allowed by the rules are highlighted, verified by the checkers engine.
- The camera checks the board — it takes a picture and compares the physical pieces with the logical game state.
- The robot makes the move — picks the piece with a magnetic gripper, moves it to the target square and places captured pieces in the buffer next to the board.

Control and robot motion
The application runs on a B&R panel PC in Automation Studio with mapp Technology packages. It is modular — each function is a separate cyclic task:
- MotionCtrl — robot state machine: power on, homing, manual mode, move execution.
- MainProgram — main game state machine: board verification, step control, capture sequence.
- camera / CheckVision — image acquisition, mapping pieces to squares and comparing with the game state.
- GameStats, SaveGame, AlarmHistory — move history, save / load game, alarm history.
Robot motion sequences are written in Structured Text (ST Motion) — moving a piece with a safe vertical approach and returning home. Before testing on the physical robot, the whole system was verified on a digital model of the cell in Scene Viewer.

Checkers engine (AI)
Game logic comes from a separate checkers engine (opens in new tab): a C core compiled into a Python extension and a Python control layer connected to the controller over an encrypted OPC UA channel.
- bitboard board representation and negamax search with alpha-beta pruning,
- transposition table, killer moves, a hand-tuned evaluation function and an opening book,
- 5 difficulty levels — from 1-ply to 15-ply, plus a "troll" mode (worst move) and random mode.
Operator panel (mapp View)
The visualization is the only human–machine interface: main screen, interactive 8×8 board with game statistics, alarms, robot manual mode (joint and Cartesian jog) and login-protected settings. The panel supports Polish and English.




Hardware and safety
| Module | Type | | --------------------- | ----------------------------- | | Panel PC / PLC | B&R 5APC3100.KBU1-000 | | 6-axis robot | Comau Racer 3 | | Camera | B&R mapp Vision VSS112Q22 | | Drives | ACOPOS 8EI (POWERLINK) | | Inputs / outputs | X20 — Safety, gripper |
The cell monitors the workspace and axes, handles E-STOP and lets the game resume after a Safety reset without restarting the machine. mapp services provide alarms (AlarmX), game saving (Recipe), audit trail and user management.



Team
Bartosz Zawłocki · Andrzej Działak · Mateusz Skrzypiński · Szymon Markowski · Adam Witczak · Piotr Piechocki