JavaScript Tic Tac Toe Project Tutorial - Unbeatable AI w/ Minimax Algorithm

Subscribers:
10,700,000
Published on ● Video Link: https://www.youtube.com/watch?v=P2TcQ3h0ipQ



Duration: 51:43
257,694 views
3,769


A full web development tutorial for beginners that demonstrates how to create an unbeatable tic tac toe game using vanilla JavaScript, HTML, and CSS. Learn the Minimax algorithm!

⌨ Part 1: Introduction (0:00)
Code: none

⌨ Part 2: HTML (2:58)
Code: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/tictactoe/2

⌨ Part 3: CSS (4:23)
Code: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/tictactoe/3

⌨ Part 4: JavaScript: Basic Setup (10:28)
Code: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/tictactoe/4

⌨ Part 5: JavaScript: Determine Winner (20:32)
Code: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/tictactoe/5

⌨ Part 6: JavaScript: Basic AI & Winner Box (30:45)
Code: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/tictactoe/6

⌨ Part 7: JavaScript: Minimax Algorithm (39:25)
Code: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/tictactoe/7

---
Special thanks to David Daly and myloginistaken who found a mistake where the game sometimes incorrectly shows a tie game. The 'Part 7' GitHub code now contains this fix.

🔗Minimax article: https://medium.freecodecamp.org/how-to-make-your-tic-tac-toe-game-unbeatable-by-using-the-minimax-algorithm-9d690bad4b37

🐦 Beau Carnes on Twitter: https://twitter.com/carnesbeau

---
Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on technology: https://medium.freecodecamp.com

And subscribe for new programming videos every day: https://youtube.com/subscription_center?add_user=freecodecamp




Other Videos By freeCodeCamp.org


2017-09-18Parallax Hero Section (P3D5) - Live Coding with Jesse
2017-09-16Easily code a virtual reality web experience with A-Frame (WebVR)
2017-09-15Adding a Material Design Side Nav with .NET Part 2 (P3D4) - Live Coding with Jesse
2017-09-14Adding a Material Design Side Nav with .NET (P3D3) - Live Coding with Jesse
2017-09-13Building a Nav with .NET (P3D2) - Live Coding with Jesse
2017-09-12Updating a Slow Website (P3D1) - Live Coding with Jesse
2017-09-11Sass Styling and Refactoring (P2D32) - Live Coding with Jesse
2017-09-10Full Stack Web App using Vue.js & Express.js: Part 7 - Wrapping Up
2017-09-10Full Stack Web App using Vue.js & Express.js: Part 6 - Search
2017-09-09Full Stack Web App using Vue.js & Express.js: Part 5 - View Song
2017-09-09JavaScript Tic Tac Toe Project Tutorial - Unbeatable AI w/ Minimax Algorithm
2017-09-07Full Stack Web App using Vue.js & Express.js: Part 4
2017-09-07Full Stack Web App Using Vue.js & Express.js: Part 3 - Login
2017-09-07Browser Testing React Project (P2D31) - Live Coding with Jesse
2017-09-06Styling React Components (P2D30) - Live Coding with Jesse
2017-09-05Full Stack Web App using Vue.js & Express.js: Part 2 - Sequelize
2017-09-05Client Side React Form Validation (P2D29) - Live Coding with Jesse
2017-09-02Full Stack Web App using Vue.js & Express.js: Part 1 - Intro
2017-09-01Emailing Form Data with React and NodeJS (P2D28) - Live Coding with Jesse
2017-08-31React Project 2 Day 27 - Live Coding with Jesse
2017-08-30React Project 2 Day 26 - Live Coding with Jesse



Tags:
javascript tutorial
beginner
tic tac toe
javascript
html
css
tutorial
project
minimax