mandatory-js-1

Mandatory Exercise 2 - JavaScript

The deadline for this exercise is Friday November 30 08:59

Preparation

  1. Create a new repository on Github called mandatory-js-2

  2. Follow the instructions that Github gives you; create a local repository and add a remote or clone the recently created repository.

Submission

When you do the submission of your exercise in Ping Pong, before the deadline, you will enter the link to your repository, such as:

https://github.com/mygithubusername/mandatory-js-2

The teacher will look in the master branch. If any commits are done to the master branch after the deadline, the grade IG will follow.

You will either get G or IG on the mandatory exercises.

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

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.

To get the grade G the following needs to be true

Optional

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