Skip to content

johnsonsirv/tic-tac-toe-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe (Javascript)

Version Documentation Maintenance License: MIT Twitter: vokeugo netlify

This project implements advanced javascript concepts like ``factory functions``, ``modules``, ``IIFE``, ``JS OOP`` and BDD using ``Jasmine`` to build a simple Tic Tac Toe game played on the browser.

This project was completed for demonstration purposes in line with standards provided by Microverse.

Wikipedia Demo

Game Rule

Tic Tac Toe is a paper-and-pencil game for two players, using X and O marks.

Players take turns marking the spaces in a 3×3 grid.

The player who succeeds in placing three of their marks in a

horizontal, vertical, or diagonal row wins the game.

See Game Rules & Strategy.

Demo

Play Game Online

Built with:

  • Javascript
  • HTML/CSS
  • Jasmine (Tests)

Installation:

Clone the repository to your local machine

$ git clone https://github.com/johnsonsirv/tic-tac-toe-js.git

Run Tests:

Online

Click Run Tests to run automated tests online

Locally using http-server (or any other option that allows CORS)

Follow link setup http-server to setup http-server using npm lauch the http-server

  http-server -c-1

Launch SpecRunner.html

  open http://127.0.0.1:8080/SpecRunner.html

Usage:

Go to the directory

$ cd tic-tac-toe-js

Open index.html using your favourite browser Follow the instructions provided by the Game.

Contributor(s):

Victor Okeugo

How to contribute:

  1. Fork it (https://github.com/johnsonsirv/tic-tac-toe-js/fork)
  2. Create your feature (dev) branch (git checkout -b feature/[choose-a-name])
  3. Commit your changes (git commit -m 'What this commit will fix/add')
  4. Push to the branch (git push origin feature/[chosen name])
  5. Create a new Pull Request

You can also create issues

License

This project is licensed under the MIT License - see the LICENSE file for details

Releases

No releases published

Packages

No packages published