This is a web-based Tic Tac Toe game application with multiple gameplay modes and player profile features.
This is a Tic Tac Toe game that can be played online via a web browser. The application provides different game modes against computer AI or local 2 player mode.
The game features a profile page that stores player name, profile image, statistics and recent game history. Players can edit their name and image on the profile page.
There is also an about page that provides overview and credits for the application.
The frontend is built with HTML, CSS and JavaScript. Game data is stored locally using the Web Storage API.
The game supports the following modes:
Play against an easy AI opponent that makes random moves.
- On the home page, click "Single Player Easy" to start this mode
- Choose X or O to be your letter
- Take turns clicking the empty cells to place your letter
- The AI will randomly choose empty cells for its moves
- First to get 3 letters in a row wins
Play against a difficult AI opponent that uses advanced strategy.
- On the home page, click "Single Player Hard" to start this mode
- Choose X or O to be your letter
- The AI will think strategically before making moves
- Try to beat the smart AI opponent by getting 3 in a row
Play local multiplayer against another person.
- On the home page, click "Two Players" to start this mode
- Player 1 chooses X or O, then Player 2 gets the other letter
- Take turns clicking empty cells to place your letters
- First person to get 3 letters in a row wins
Registered players have access to their profile page which displays:
- Change player name
- Upload a custom profile picture
- Option to reset all profile data including:
- Player name
- Profile image
- Statistics
- Game history
- Number of total games played
- Number of wins
- Number of losses
- Number of draws
- Win percentage
- List of most recent games showing:
- Game result (win, lose or draw)
- Date & time for each game
Profile data is persisted locally using the Web Storage API.
The about page provides information on:
- Game overview and rules
- Profiles and statistics features
- Developers credits
- HTML - Structure and content
- CSS - Styling
- JavaScript - Game logic and interactivity
- Web Storage API - Persisting profile data
To run this Tic Tac Toe game app:
-
Clone the repository
-
Open
index.html
in a browser -
No web server required
-
Access different pages by clicking nav links
-
Game features will utilize local browser storage
Contributions are welcome! Here are some ways you can contribute to this project:
- Report bugs and issues
- Fix bugs and issues
- Add new validation functionality
- Improve styling and overall UX
- Refactor code to improve quality
- Write documentation and improve existing docs
To contribute:
- Fork the repository
- Create a new branch
- Make your changes and commit them
- Push your branch and submit a pull request
I will review pull requests and provide feedback.
This project is open source and available under the MIT License.
This application was created by: