Skip to content

truptigaonkar/mandatory-js-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TIC-TAC-TOE - JavaScript & jQuery - Live Demo

mandatory-js-2

  • A complete game of tic-tac-toe can be played in the browser between two players (taking turns on the same computer).
  • When the game is over, you shouldn't be able to do any more moves.
  • When the game is over, you can refresh the game and start a new game (without page refreshing). This should not happen automatically.

Instructions

  • Write your own tic-tac-toe game in the browser!
  • The game should be able to play with 2 players (taking turns on the same computer).
  • Render the game with HTML and CSS, and implement all functionality of the game with JavaScript.
  • You're required to use jQuery for all the DOM manipulations.
  • When a game is over, there should be a reset button that allows the players to play a new game.

Optional

Try and implement a game AI that you can play against.

Resources

https://en.wikipedia.org/wiki/Tic-tac-toe https://developer.mozilla.org/sv-SE/docs/Web/JavaScript/Reference/Classes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON