Coder Social home page Coder Social logo

roadmap-to-web-dev's Introduction

Tic Tac Toe Game

This simple web-based Tic Tac Toe game is built with basic HTML, CSS, and JavaScript, enabling two players to play interactively on the same device.

Tic Tac Toe Screenshot

Live Demo: Play Tic Tac Toe here!

Features

  • Simple Interface: A clean and minimalistic design for easy gameplay.
  • Two Player Mode: Designed for two players, playing on the same device.
  • Interactive UI: Players can click on the grid to make a move; the game automatically checks for wins or ties.

Getting Started

These instructions will get your copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

A modern web browser is required to run this game.

Installing

  1. Clone the repository or download the ZIP file.

    git clone https://github.com/yourusername/Road-Map-to-Web-Dev.git
    
  2. Navigate to the Tic Tac Toe directory

    Open a terminal and use the following command to navigate to the Tic Tac Toe directory:

    cd 'Road-Map-to-Web-Dev/Basic HTML, CSS and JS/Tic Tac Toe'
    
  3. Then, open the index.html file in a web browser to start the game.

How to Play

The game board consists of a 3x3 grid:

  • Player 1 starts the game and plays with 'X', followed by Player 2 who plays with 'O'.
  • Players take turns placing their symbols on the grid.
  • The first player to align three symbols vertically, horizontally, or diagonally wins the game.
  • If all cells are filled and no player has aligned three symbols, the game ends in a draw.

Built With

  • HTML: Structures the game interface.
  • CSS: Styles the game interface.
  • JavaScript: Manages game mechanics and interactivity.

roadmap-to-web-dev's People

Contributors

likhita-narra 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.