Make An Arduino Tic Tac Toe Game With An AI Opponent @MichaelKlements
Make An Arduino Tic Tac Toe Game With An AI Opponent  @MichaelKlements
Uploaded June 2021 | Updated September 2026, 2 weeks ago
In this video, we're going to be building a Tic Tac Toe or Noughts and Crosses shield for an Arduino. The code allows for three game modes, one for turn-by-turn two-player games and then two different levels of difficulty when playing against an AI opponent. The AI uses a minimax algorithm to evaluate the state of the game board and then select the best move to play in order to minimise the opponent's chance of winning the game.

Visit my blog for the full step by step instructions to make your own Tic Tac Toe shield - the-diy-life.com/make-an-arduino-tic-tac-toe-game-with-an-ai-opponent

Get your PCB’s made with PCB Way - pcbway.com

Parts List Purchase Links (Amazon)
Arduino Mega – amzn.to/3gNaK29
10 x Tactile Pushbuttons – amzn.to/3vD9Oms
10 x 5mm RGB LEDs (Common Cathode) – amzn.to/3iUmq5Z
10 x 15K Resistors – amzn.to/2UnbJP6
11 x 390Ω Resistors – amzn.to/2UnbJP6
10 x 470Ω Resistors – amzn.to/2UnbJP6
Male Pin Header Strips - amzn.to/2VrQvML
Soldering Iron used - amzn.to/3aZxN81

Part List Purchase Links (Banggood)
Arduino Mega – banggood.com/custlink/KK3Ya2t8uQ
10 x Tactile Pushbuttons – banggood.com/custlink/KGKha2PL3m
10 x 5mm RGB LEDs (Common Cathode) - banggood.com/custlink/GKGYoztjvy
10 x 15K Resistors – banggood.com/custlink/mD3djUPi71
11 x 390Ω Resistors – banggood.com/custlink/mD3djUPi71
10 x 470Ω Resistors – banggood.com/custlink/mD3djUPi71

The above parts are affiliate links. By purchasing products through the above links, you’ll be supporting this channel, with no additional cost to you.

If you've got any ideas for Raspberry Pi, Arduino, or other Electronics projects or tutorials you'd like to see, let me know in the comments section.
Make An Arduino Tic Tac Toe Game With An AI OpponentLaser Cut Raspberry Pi Cases Using The Atomstack X7 40WThis $216 AliExpress Homelab Sounds Too Good to Be TrueTurn Your 10″ Homelab Into a NAS! 3D Printable Drive & SBC ShelvesAdd an OLED Stats Display to Raspberry Pi OS BullseyeI Built an AI Chatbot That Talks, Blinks, and Looks Around! #animatronic #chatbot #techtok #openaiN97 vs N100 vs Raspberry Pi 5: Which Is Right For You?How To Make A Solar Powered Mendocino MotorPi-ntelligent Planner: The Ultimate Family Hub! #raspberrypi #techtok #pi5 #planningTiny Cyberdeck Made With The Atomstack X30 ProA Pi Cluster That Fits in the Palm of Your Hand! This is the Sipeed NanoCluster #techtok #cm5Making An Indoor Air Quality Monitor With A DFRobot CO2 Sensor
Michael Klements |

Make An Arduino Tic Tac Toe Game With An AI Opponent

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER