GithubHelp home page GithubHelp logo

tic-tac-toe's Introduction

Tic! Tac! Toe!

Welcome to the TicTacToe Game UI, a simple Javascript web application allowing users to interact with our Game Engine. The goal of this project is to make possible for users to have a richer experience when playing TicTacToe. This game is for younger kids.

Author: Purvi Pandya; [email protected] Date: April 4, 2019

Link For Tic Tac Toe

https://pandyapurvi.github.io/Tic-tac-toe/

Tic Tac Toe

Technologies Used

  • HTML5
  • CSS3
  • JavaScript
  • jQuery
  • Commandline
  • Github

Sources

How To Play Game:

  • This game needs two players. First player (Player 1) will get a letter "X" and second player (player 2) will get a letter "O".
  • Both player will get turn one by one. X and O, who 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.
  • Once the game has a winner or there is a draw, you will see a dialog informing about the result. From here you can:
  • Replay the game and improve your score or
  • You can reload the page again to start the game from zero.

Project Overview:

  • This project includes default 3ร—3 grid. When player clicks on any empty box, it takes an "id" and callback a function called - clickedButton. clickedButton counts clicks, if click is even number it will take "X" and for odd number it will take "O". Clicks will count on empty boxes only, because once the box is clicked it will not take that click in consideration unless you play again or re-start game.
  • The "id" goes in an empty array of respective players as they take a move. Once the array collects 3 numbers, it start comparing with winning array. In winning array, there are total 8 possibilities to win the game. Player wins the game, if player's array matches with any of the winning possibilities.
  • When player wins the game, array become full and board will not accept any move. But if nobody wins, it declares a DRAW.
  • Player get score-10 each time when he/she gets the game in favour. Score keeps adding when player wins tic tac toe, until player do not reload the game.

Bugs

It is not supporting media query.

tic-tac-toe's People

Contributors

pandyapurvi avatar

Watchers

James Cloos 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.