Skip to content

Wambui-N/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

Welcome to the Tic-Tac-Toe game repository! This project is a simple implementation of the classic Tic-Tac-Toe game using HTML, CSS, and JavaScript.

Capture

Features

  • Play against a friend on the same device.
  • Responsive design for different screen sizes.
  • Win detection for rows, columns, and diagonals.
  • Reset the game and start a new round.

How to Play

  1. Open index.html in your web browser.
  2. The game board will be displayed, and the first player (X) will be indicated in the turn indicator.
  3. Click on an empty cell to place your symbol (X or O).
  4. The turn indicator will switch to the next player after each move.
  5. The game ends when one player forms a line of three symbols (horizontally, vertically, or diagonally) or when all cells are filled.
  6. Use the "Reset" button to start a new game round.

Technologies Used

  • HTML
  • Tailwind (Styling)
  • JavaScript (Game logic)

Future Enhancements

  • Implement AI for single-player mode.
  • Enhance the user interface with animations and effects.
  • Store and display game statistics.

Contribution

Contributions are welcome! If you find any bugs or have suggestions for improvements, feel free to open an issue or submit a pull request.

Enjoy the game and have fun playing Tic-Tac-Toe!

Author: Wambui Ndung'u

tic-tac-toe

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published