Skip to content

Latest commit

 

History

History
executable file
·
44 lines (29 loc) · 1.82 KB

README.md

File metadata and controls

executable file
·
44 lines (29 loc) · 1.82 KB

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

  • 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.

Optional

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