Skip to content

Jqyoung/Tic-Tac-Toe

Repository files navigation

Tic-Tac-Toe

A web-based Tic-Tac-Toe game with a Matrix movie inspired theme. Choose to play against an AI or another player for an epic battle of 0's and 1's. A project from The Odin Project's curriculum

🔗 Live Link

project screenshot

What I Learned

  • Use factory functions and module pattern to organize the code into logical chunks.
  • Separate the application's operational logic from its display logic. This way, the actual operation logic can become less dependent on DOM elements, thus easier to scale and debug. A concept introduced in Building A House From The Inside Out.
  • Use get and set methods to update or retrieve values in an object instead of directly access an object property because properties are passed by value, which can cause unexpected behavior.
  • Gain a better understanding of how event propagation and bubbling works.
  • CSS key-frame animation.

What I can Improve

  • Write a flowchart and better pseudocode before the actual coding.
  • Get rid of some of the repetitive code by refactoring them into reusable functions or modules.
  • Make the AI intelligent.
  • Make the website responsive.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published