Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 1.26 KB

README.md

File metadata and controls

18 lines (17 loc) · 1.26 KB

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