Tic Tac Toe in p5.js (Coding Challenge 149)

1.4M views
July 24, 2019
by
The Coding Train
YouTube video player
Tic Tac Toe in p5.js (Coding Challenge 149)

TL;DR

Coding challenge creating a basic Tic-Tac-Toe game in JavaScript using p5.js without AI.

Transcript

[WHISTLE BLOWING] Hello, and welcome to a coding challenge-- Tic-Tac-Toe. I'm going to make Tic-Tac-Toe. I'm hoping, when you look at how long this video is, it's very short, because I don't have a lot of time right now. So I'm going to try and make a very beginner-friendly example of the game Tic-Tac-Toe without any bells and whistles, without a l... Read More

Key Insights

  • ❓ The challenge focused on creating a simple version of Tic-Tac-Toe.
  • 👾 Demonstrated rendering a game board using nested loops in p5.js.
  • 😉 Showcased player turn management and winning condition checks.
  • 🌱 Future plans include implementing the mini-max algorithm for AI gameplay.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What libraries were used to create the Tic-Tac-Toe game?

The game was created using JavaScript, the p5.js library, and the p5 web editor.

Q: How was the game board rendered in the coding challenge?

The game board was rendered using nested loops to create a 3x3 grid in a Canvas element.

Q: How did the coding challenge handle player turns and winning conditions?

The challenge implemented a system to alternate between X and O players, and checked for winning combinations in rows, columns, and diagonals.

Q: What future plans were mentioned for the Tic-Tac-Toe coding challenge?

The creator mentioned coming back in the future to implement the mini-max algorithm to create an AI for intelligent gameplay.

Summary & Key Takeaways

  • Coding challenge creating a beginner-friendly version of Tic-Tac-Toe.

  • Used JavaScript and p5.js to render the game board and implement game logic.

  • Demonstrated how to create a basic version of Tic-Tac-Toe without AI.


Read in Other Languages (beta)

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator