Skip to content

heniscoding/Henry-s-Noughts-and-Crosses

Repository files navigation

Henry's Noughts and Crosses

Welcome to Henry's Noughts and Crosses, a simple web-based tic-tac-toe game developed by Henry's Coding!

Table of Contents

Introduction

Henry's Noughts and Crosses is a classic tic-tac-toe game built with HTML, CSS, and JavaScript. The game allows two players to take turns marking spaces on a 3x3 grid with their respective symbols (either "X" or "O"). The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

Features

  • Simple and intuitive user interface
  • Two-player gameplay
  • Automatic detection of winning moves and tie games
  • Responsive design for desktop and mobile devices

Demo

You can play the game live here.

Installation

To run the game locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/heniscoding/Henry-s-Noughts-and-Crosses.git
  2. Navigate to the project directory:
    cd Henry-s-Noughts-and-Crosses
  3. Open the index.html file in your web browser.

Usage

  • Click on an empty cell to place your symbol (either "X" or "O").
  • Take turns with your opponent to make moves.
  • The game will automatically detect winning moves and announce the winner.
  • If no winner is found and all cells are filled, the game will declare a tie.

Contributing

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature-name).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature/your-feature-name).
  6. Create a new pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 12