Giter VIP home page Giter VIP logo

tic-tac-toe's Introduction

Tic Tac Toe Game

This is a simple Tic Tac Toe game built using HTML, CSS, and JavaScript.

Overview

Tic Tac Toe is a classic game where two players take turns marking spaces in a 3x3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

Features

  • Responsive Design: The game is designed to be responsive and playable on both desktop and mobile devices.
  • Interactive Gameplay: Players can click on the grid to place their mark.
  • Win Detection: The game automatically detects when a player has won and highlights the winning combination.
  • Reset Option: Players can reset the game board at any time to start a new game.

Technologies Used

  • HTML: Used for structuring the game layout.
  • CSS: Utilized for styling the game interface.
  • JavaScript: Implemented the game logic and functionality.

How to Play

  1. Open the game in a web browser.
  2. Two players take turns clicking on an empty cell to place their mark (X or O).
  3. The first player to align three of their marks horizontally, vertically, or diagonally wins the game.
  4. If all cells are filled and no player has won, the game ends in a draw.
  5. To start a new game, click the New Game button.

Screenshots

Gameplay Screenshot Gameplay Screenshot

Demo

You can try the game live here.

tic-tac-toe's People

Contributors

gajendra-ingle 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.