Make An Arduino Tic Tac Toe Game With An AI Opponent

2 Просмотры
Размещено
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 - https://www.the-diy-life.com/make-an-arduino-tic-tac-toe-game-with-an-ai-opponent/

Get your PCB’s made with PCB Way - https://www.pcbway.com/

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

Part List Purchase Links (Banggood)
Arduino Mega – https://www.banggood.com/custlink/KK3Ya2t8uQ
10 x Tactile Pushbuttons – https://www.banggood.com/custlink/KGKha2PL3m
10 x 5mm RGB LEDs (Common Cathode) - https://www.banggood.com/custlink/GKGYoztjvy
10 x 15K Resistors – https://www.banggood.com/custlink/mD3djUPi71
11 x 390Ω Resistors – https://www.banggood.com/custlink/mD3djUPi71
10 x 470Ω Resistors – https://www.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.
Категория
Ардуино
Комментариев нет.