Welcome to Henry's Noughts and Crosses, a simple web-based tic-tac-toe game developed by Henry's Coding!
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.
- Simple and intuitive user interface
- Two-player gameplay
- Automatic detection of winning moves and tie games
- Responsive design for desktop and mobile devices
You can play the game live here.
To run the game locally, follow these steps:
- Clone the repository:
git clone https://github.com/heniscoding/Henry-s-Noughts-and-Crosses.git
- Navigate to the project directory:
cd Henry-s-Noughts-and-Crosses
- Open the index.html file in your web browser.
- 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.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new pull request.
This project is licensed under the MIT License.