/unit-5-lab

Unit 5 Lab: DOM Tic-Tac-Toe

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Unit 5 Lab: Tic-Tac-Toe

Directions

For this cumulative lab, you will simply build a Tic-Tac-Toe game.

Here are your requirements:

  1. Create a new repository on Github. You will also need to create an index.html file and a .js file in this repo.
  2. You must use object-orientation to encapsulate your game logic and UI updates.
  3. Your Tic-Tac-Toe game should be designed as a two-player game. In other words, you are not responsible for creating a CPU or an AI to play against user. Your game should simply alternate between 'X's and 'O's upon clicks, allowing two players to sit next to each other and play on one computer.
  4. Your game should clearly identify a winner or indicate when a "draw" has occurred.
  5. Your game should have the ability to "restart" without refreshing the page by clearing the board.
  6. Do not work on styling until you have a fully-functioning Tic-Tac-Toe game

Guiding Principles

Your submission will be scored against the following criteria:

  1. Game Play:
  • Is your game intuitive to play?
  • Does your game produce a winner and/or draw state in line with the rules of tic-tac-toe?
  1. User Interface/Experience:
  • Is your game board visually appealing?
  • Does your game respond predictably to user input?
  1. Code Quality:
  • Is your game logic encapsulated into classes?
  • Are your UI methods encapsulated as well?

Groups:

  • Cat, Olivia

  • Drea, Asif, Itzel

  • Jarrit, Rabia

  • Shemar, Jason

  • Segun, Ricardo

Brownie Points 🧁

Once you have satisfied the requirements above, consider implementing the following feature requests as an added challenge! 💪🏽

  • Add CSS style to your game
  • Add a scoreboard
  • Implement a single-player mode by adding a Computer player. Your computer player can be "dumb" and just place 'O's in a random available space.
  • Build an AI that competes intelligently. 😳