Coder Social home page Coder Social logo

johnsonsirv / tic-tac-toe-js Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 96 KB

Tic Tac Toe game for 2 players on the browser

License: MIT License

HTML 2.11% JavaScript 97.52% CSS 0.37%
factory-functions js-module js-oop jasmine bdd js-design-pattern

tic-tac-toe-js's Introduction

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

tic-tac-toe-js's People

Contributors

johnsonsirv avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.