HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

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

271,961 views November 9, 2017 51:43

Watch on YouTube
ChannelfreeCodeCamp.org

Description from the creator

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: github.com/beaucarnes/fcc-project-tutorials/tre…

⌨ Part 3: CSS (4:23)
Code: github.com/beaucarnes/fcc-project-tutorials/tre…

⌨ Part 4: JavaScript: Basic Setup (10:28)
Code: github.com/beaucarnes/fcc-project-tutorials/tre…

⌨ Part 5: JavaScript: Determine Winner (20:32)
Code: github.com/beaucarnes/fcc-project-tutorials/tre…

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

⌨ Part 7: JavaScript: Minimax Algorithm (39:25)
Code: github.com/beaucarnes/fcc-project-tutorials/tre…

---
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: medium.freecodecamp.org/how-to-make-your-tic-ta…

🐦 Beau Carnes on Twitter: twitter.com/carnesbeau

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

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

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

❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: scrimba.com/freecodecamp

About this tutorial

freeCodeCamp.org published this 51:43 video tutorial on November 9, 2017. It has been watched 271,961 times on YouTube.

Category
Education
Duration
51:43
Published
November 9, 2017
Views
271,961
Likes
3,927

Tags

Share

This tutorial in other languages