Skip to content

A silly Tic Tac Toe game by using basic HTML / CSS / JS / jQuery skills

Notifications You must be signed in to change notification settings

smartnelly/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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

Code Logic Strcture

  • 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 the this 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 click ok

PLAY HERE

About

A silly Tic Tac Toe game by using basic HTML / CSS / JS / jQuery skills

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages