๐๐ฎ๐ ๐ฎ๐ฐ ๐ผ๐ณ ๐๐ฒ๐ฎ๐ฟ๐ป๐ถ๐ป๐ด ๐ ๐๐ฅ๐ก ๐ฆ๐๐ฎ๐ฐ๐ธ
I finished the DOM and Events lectures from Apna College. Today, I focused on building.
I built a Tic-Tac-Toe game using vanilla JavaScript, HTML5, and CSS. Building a project is different from watching a tutorial. You must solve real problems.
Creating a user interface requires more than console logs. I had to write logic to determine a winner.
Key steps in this project:
- I built a 3x3 grid using nine button elements.
- I used CSS to create a modern layout with hover effects.
- I mapped out all winning patterns using an array.
The logic checks eight possible combinations:
- 3 horizontal rows
- 3 vertical columns
- 2 diagonals
This project forced me to apply everything I learned over the last two weeks.
Source: https://dev.to/ali_hamza_589ec7b3eb6688d/day-24-of-learning-mern-stack-5eb3