Tic tac toe playing robot
Robot playing tic tac toe against a human player using an AI algorithm
the code can be found Here.
First you choose which player plays first (human or robot).
On the first frame we detect the board in the camera feed with red color detection.
when motion is detected (the player draws his move on the board) the robot waits.
Once the motion stopps we detect circles with hough transform algorithm,
if there’s a new circle then that’s the player’s move and its the robot’s turn.
we search for the best move possible with minmax algorithm.
then the robot makes the move
and most importantly, if he wins he does a little victory dance.
Mor Zamir: firstname.lastname@example.org
Shiran Afergan: email@example.com
Haneen Najar: firstname.lastname@example.org