Skip to content

NathallyDev/noughts-and-crosses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noughts_and_Crosses

This is a simple implementation of the classic game Noughts and Crosses. The game features a 3x3 grid where two players take turns marking the cells with either "X" or "O". The first player to align three of their symbols horizontally, vertically, or diagonally wins the game. If the grid is filled without any player winning, the game results in a tie.

Features

  • Two Players: Play against another person.
  • Turn-Based: Players take turns marking the cells.
  • Win Detection: Automatically detects and announces the winner or a tie.
  • Game Reset: Option to reset the game and start a new round.

How to Play

  1. Open the Game: Load index.html in your web browser.
  2. Take Turns: Click on an empty cell to place your mark ("X" or "O").
  3. Win or Tie: The game will announce the winner or if the game is a tie.
  4. Reset the Game: Click the "Resetar Jogo" button to start a new game.

Files

  • index.html: The main HTML file that defines the game structure.
  • styles.css: The CSS file that styles the game board and elements.
  • script.js: The JavaScript file that contains the game logic and interactivity.

Installation

No installation is required. Simply download or clone the repository and open index.html in your web browser to start playing.

Contributing

If you'd like to contribute to the project, feel free to:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes.
  4. Submit a pull request.

License

This project is licensed under the MIT License.

Contact

For any questions or feedback, please contact nathallylym@gmail.com.

Happy Playing!

About

The Classic version of the game noughts and Crosses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published