Skip to content

An app that allows two users to play tic-tac-toe (Epicodus Intro Week 4 Thursday)

Notifications You must be signed in to change notification settings

codemargaret/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

This application allows two players to play tic-tac-toe, 08.24.2017

By Dan Kiss & Margaret Berry

Description

The first player automatically becomes X's. X's and Os appear on alternate clicks. An alert pops up if one player wins.

Setup/Installation Requirements

Run the following commands in Terminal:

  1. $ git clone this repository
  2. $ cd tic-tac-toe
  3. $ open index.html

Specifications

Spec Input Output
If a player clicks on a box in the game board, an X appears. click 'Spot 3' x
When the next player clicks on a box, an O appears. click 'Spot 6' o
If there are 3 Xs or Os in a row, column or diagonally, an alert will appear saying "You win! X X X You win!

Known Bugs

  • The alerts for winner contain the column name instead of the player name.
  • There is no alert for a tie game.

Project Goals

Get more comfortable writing more complex JavaScript applications.

Future Features

Add alerts that say which player wins, and alerts for tie games. Add more styling.

Support and contact details

If you have any updates, questions, or suggestions please contact Margaret or make a contribution.

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • jQuery

License

This software is licensed under the MIT license.

Copyright (c) 2017 Margaret Berry and Dan Kiss

About

An app that allows two users to play tic-tac-toe (Epicodus Intro Week 4 Thursday)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published