A project for creating the game Tic-Tac-Toe on a webpage for The Odin Project Full Stack JavaScript course. The page is created using HTML, CSS and JavaScript. A live version can be viewed on GitHub pages. The JavaScript file uses factory functions to create the player objects, and uses modules for the gameflow, handling events etc. This approach minimizes the amount of global code.
A screenshot of the Tic-Tac-Toe game with desktop resolution. In the example above, a game has been played until player 1 has won.