Skip to content

Skylar-Brockbank/tic-tac-toe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe IN SPACE!

By Aaron Minnick, Karen Axon, & Skylar Brockbank

A Tic Tac Toe Website with a computer player option

Try it here

Technologies Used

  • HTML
  • CSS(Bootstrap)
  • Git
  • Javascript
  • JQuery

Description

A tic tac toe game with single and 2 player modes. The single player mode has a computer player designed to play a series of fun games of tic tac toe with the user

Setup/Installation Requirements

  • Click the green "Code" button and Download Zip

  • Extract the contents of the zip file to a folder on your machine

  • Run the Index.html file with your browser of choice (I recommend Chrome)

  • alternatively you can clone this repository from Git Hub

Known Bugs

  • No Known Bugs

License

*MIT Licenced *Copyright (c) 2021 Aaron Minnick, Karen Axon, Skylar Brockbank

Tests (incomplete)

Describe: Space()
Test: It should return an object with an array of neighbors and a value ("", x, o);
Code: 
      let space1 = new Space();
      console.log(space1.value);
Expected Output: ""

Describe: Space.prototype.addPairToCheck()
Test: It should add a pair of pointers to the pairsToCheck array inside the space object
Code: 
      let space1 = new Space();
      let space2 = new Space();
      let space3 = new Space();
      space2.addPairToCheck(space1,space3);
      console.log(space2.pairsToCheck[0][0]);
Expected Output: "Object"

Describe: Board()
Test: It should return an object with nine spaces, an array that includes the nine spaces and an x as the mark.
Code:
      let board1 = new Board();
      console.log(board1.spaces[4], board1.nextMark);
Expected Output: "Object" 'x'

Test: It should run addPairToCheck for every edge space that has a neighbor and the center space (four).
Code:
      let board1 = new Board();
      console.log(board1.spaces[4].pairsToCheck);
Expected Output: [[], [], [], []]
      
Etc...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.9%
  • HTML 20.7%
  • CSS 19.4%