Project / Robotics & AI
Robot
J4
A robotic arm that plays Connect Four. Combining mechanical design, computer vision and the Minimax algorithm into a physical intelligence.
Overview
A machine that
thinks and acts.
Robot J4 is not just a program. It's a physical presence at the table. When it's its turn, it looks at the board, thinks, and reaches for the grid. The whole loop: perception, decision, action. It all happens in the real world.
At its core lives the Minimax algorithm, a strategy borrowed from game theory. J4 simulates future game states, weighs outcomes and picks the move that maximises its chances of winning, or minimises yours.
Built as part of a high school engineering specialisation, the project won the national title at Concours Cgénial, then the CERN European Prize at EUCYS in Latvia.
How it works
Coin toss
A random draw determines who plays first: J4 or the human. The robot handles both opening and response strategies equally.
Visual perception
A camera continuously films the board. Computer vision processes the feed in real time to detect token positions and maintain an accurate board state.
Minimax decision
The algorithm explores the game tree up to a set depth. A custom heuristic evaluates each position, rewarding alignment, blocking threats and weighting centre control.
Physical execution
The chosen column is sent via UART to the Arduino. J4 moves into position and drops the token into the grid with precision.
Automatic turn detection
After the human plays, the camera detects the new token without any button press. The cycle continues until someone wins or the grid is full.
Stack
Architecture
Key concepts
Recognition
2024 / France
Concours Cgénial
Winner of the national final. The leading French competition for high school science and engineering projects, recognising innovation and technical rigour.
National Winner2025 / Riga, Latvia
EUCYS
Selected to represent France at the European Union Contest for Young Scientists. Awarded the CERN European Prize for exceptional work in science and engineering.
CERN European Prize