- Render the game board in the browser
- Switch turns between ๐ฑ and ๐ถ
- Visually display which side won when a player gets three in a row or show "๐ฑ Wins"/ a draw if neither wins
- Separate HTML / CSS / JavaScript files included
- Use Javascript / jQuery for DOM manipulation
- Deploy game ONLINE
- Use semantic markup for HTML and CSS
-
make a 3*3 table in HTML file
-
basic CSS set up
-
JavaScript / jQuery
- click
this
box will trigger"click"
function, then append ๐ฑ or ๐ถ in thethis
box by checking it is a ๐ฑ / ๐ถ turn first - check if player get 3 in row / column / diagonal by runing
findWinner
function - when Winner come out add CSS class
"blink"
on<table>
and alert the Winner and restart the game by clickok
- click