Skip to content

A simple, interactive web-based implementation of the classic Noughts and Crosses (Tic-Tac-Toe) game built using HTML, CSS and JavaScript.

Notifications You must be signed in to change notification settings

baberlabs/noughts-and-crosses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Noughts and Crosses Game

A simple, interactive web-based implementation of the classic Noughts and Crosses (Tic-Tac-Toe) game.

Description

This project is a web-based Noughts and Crosses game that allows two players to compete against each other. The game features a clean, user-friendly interface with a 3x3 grid, player turn indicator, and score tracking.

Live Demo

Visit baberlabs.github.io/noughts-and-crosses for a live demo.

Features

  • Interactive 3x3 game board
  • Turn-based gameplay for two players
  • Player score tracking
  • Game state management (win, draw, ongoing)
  • Reset functionality to start a new game

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (ES6+)

Installation

  1. Clone the repository:
    git clone https://github.com/baberlabs/noughts-and-crosses.git
    
  2. Navigate to the project directory:
    cd noughts-and-crosses
    
  3. Open index.html in your preferred web browser.

How to Play

  1. The game starts with Player 1 (X).
  2. Players take turns clicking on an empty cell to place their mark (X or O).
  3. The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game.
  4. If all cells are filled and no player has won, the game is a draw.
  5. Use the "Reset Board" button to start a new game at any time.

Contributing

This project was pair programmed by:

Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.

License

MIT

About

A simple, interactive web-based implementation of the classic Noughts and Crosses (Tic-Tac-Toe) game built using HTML, CSS and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published