An open API service indexing awesome lists of open source software.

https://github.com/deepanker70/tic-tac-toe

tic-tac-toe game in Javascript
https://github.com/deepanker70/tic-tac-toe

board-game game javascript js tic-tac-toe

Last synced: 3 months ago
JSON representation

tic-tac-toe game in Javascript

Awesome Lists containing this project

README

        

# Tic Tac Toe Game

This is a simple Tic Tac Toe game implemented using HTML, CSS, and JavaScript. It features a computer opponent with a Minimax AI, sound effects, and a scoreboard to track wins.

## How to Play

1. Clone or download the repository.
2. Open the `index.html` file in your web browser.
3. Click on an empty cell to place your 'X'.
4. The computer ('O') will then take its turn.
5. The game continues until one player wins or it's a draw.
6. The scoreboard keeps track of the wins for each player.
7. Click the "Reset Game" button to start a new game.

## Features

* **Computer AI:** The computer opponent uses the Minimax algorithm to make its moves, providing a challenging gameplay experience.
* **Sound Effects:** Sound effects are included for moves, wins, and game over.
* **Scoreboard:** A scoreboard displays the number of wins for each player.
* **Responsive Design:** The game board is designed to be responsive (using CSS Grid), adapting to different screen sizes. (Note: This could be improved further)

## Technologies Used

* HTML
* CSS
* JavaScript

## Future Improvements

* **Improved AI:** While Minimax is implemented, further optimizations (like alpha-beta pruning) could be added.
* **Enhanced Styling:** The styling could be improved for a more polished look.
* **Mobile Responsiveness:** Further improvements to make the game more mobile-friendly.
* **Game State Persistence:** Implement local storage to save the scores across browser sessions.

## Author

Deepanker Verma (deepanker70)