Code Monkey home page Code Monkey logo

tic_tac_game's Introduction

tic_tac_game

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

This game allows players to play against each other on a 3x3 grid. Players take turns to place their mark (X or O) on the grid, with the goal of getting three of their marks in a row, either horizontally, vertically, or diagonally. The first player to get three marks in a row wins the game.

how to play

Open the index.html file in a browser. Click on a cell to place your mark. Take turns with the other player. If a player gets three marks in a row, the game will announce the winner. Click on the "Reset" button to start a new game.

Features

The game keeps track of the current player and displays it on the page. The game checks for a winner after each move and announces the winner if there is one. The game keeps track of the number of turns played. The game will disable the cells after the game is over. The game will highlight the winning cells. The game has a responsive design and works on all screen sizes.

Future improvements

Add support for playing against the computer. Add an option to choose the symbol (X or O) for the players. Add a scoreboard to keep track of the number of wins for each player. Add an option to play on a larger grid.

License

geetin it soon

tic_tac_game's People

Contributors

umerfarok avatar

Stargazers

 avatar  avatar M Bilal Shafiq avatar  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.