Unbeatabot
EECS 4421 ยท Kinova Gen3 Lite

Unbeatabot

A robot arm that
never loses., reads the board by camera., places real pieces., plays like a machine.

Put your piece on the board and the arm answers with one of its own. Play X, go first, and see whether you can get a draw.

A careless X against the robot's O, playing itself.

How it works

Tic-tac-toe on a paper board. You and the robot take turns until someone gets three in a row.

9
squares
8
ways to win
255,168
possible games, all solved

You place a piece

You play X and you go first. Put one of your foam pieces on any empty square, then take your hand away from the board.

The camera sees it

A camera above the table reads the printed markers on the squares and pieces. Once the board has been still for a moment your move counts. You can also just click the square on screen.

The robot thinks

It looks at every way the game could go from here (minimax) and picks the move that cannot lose. The best you can force against it is a draw.

The arm plays

The Kinova Gen3 Lite picks up one of its O pieces from beside the board, places it on its square, and moves out of your way. Three in a row or a full board ends the game, and the score carries over to the next one.

The robot only loses if a piece ends up somewhere it should not. If the arm drops a piece or the camera cannot read the board, the game stops and tells you what to fix.

Good to know

The lab setup: the Kinova Gen3 Lite on its table, the camera over the board, the paper board with its markers and the foam pieces. Your laptop connects to the robot through a small bridge program, and the Play page walks you through it.

More in the project README, or just play a game.