Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Tic Tac Toe - Ultimate Edition

Welcome to the most feature-packed and troll-fueled version of Tic Tac Toe. This isn't your average 3x3 grid — it's a battle of wits, roast, and AI supremacy.


🚀 Features

  • 🧑‍🤝‍🧑 PvP Mode – Classic 2-player mode, but spiced up with transitions and responsive UI.
  • 🤖 Bot Mode – Choose from 3 difficulties:
    • Easy: The bot is dumber than your old Nokia.
    • Medium: Bot thinks one step ahead like a decent player.
    • *Hard: Built with **Minimax Algorithm, this bot plays **perfectly. You can only *draw it, never beat it.
  • 🎭 Roasting System – The game mocks you with savage messages depending on your difficulty choice. Easy players beware!
  • Glitch Screen Effects – Unique loading glitch between screens for a stylish transition.
  • 🔊 Sound Effects:
    • Click & hover sounds for buttons.
    • Win/Lose sound effects.
  • 🎨 Neon-Cyberpunk Styling – Responsive layout with glowing effects and animations.

🧠 How It Works

🕹 Modes

  • On launch, select a game mode:
    • PvP: Pick who starts and begin.
    • Bot: Select difficulty → choose to play as X or O.

🧠 AI Logic

  • Medium Bot: Uses getBestMove() to try winning or blocking one move ahead.
  • Hard Bot: Uses recursive **Minimax algorithm to evaluate all possible outcomes. It never makes a mistake.

🔄 Reset Behavior

  • Reset clears the board, sounds, and reinitializes game logic.
  • If it's the bot’s turn after reset, it will auto-move after a 1s delay.

🛠 Tech Stack

  • HTML5
  • CSS3
  • JavaScript (Vanilla)
  • No frameworks. Pure JS power.

📸 Preview

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5


🚀 How to Run

1. Clone the repository

git clone https://github.com/Ravishashi07/ultimate-tictactoe.git
cd ultimate-tictactoe

2. Right-click on index.html → Open with Live Server OR use the "Go Live" button in VS Code's status bar

3. Start playing.


📜 License

MIT License
Use it, modify it, roast your friends with it.


👑 Author

Built with caffeine, sarcasm, and late-night coding.

“The game where you can lose to a JavaScript object.”


🌐 Live Demo

Click here


🎧 Credits

Click Sound Effect
“Sci-fi Click” by Mixkit
License: Free for commercial and personal use – No attribution required

Home Sound Effect
"Sci Fi Confirmation" by Mixkit
License: Free for commercial and personal use – No attribution required

Loading Sound Effect
"Sharp Riser Cinematic Sound FX (No Copyright)"
by The Audio Horizon SFX
📎 YouTube | 🌐 Website
License: Royalty-Free – Safe for commercial and personal projects

Glitch Sound Effect
"Best GLITCH Sound FX / Royalty Free"
by The Audio Horizon SFX
📎 YouTube | 🌐 Website
License: Royalty-Free – Safe for commercial and personal projects

Win Sound Effect
"Success 1" by Leszek_Szary
📎 Freesound.org Link
License: Creative Commons 0 (CC0) – No attribution required

Lose Sound Effect
"FAIL funny lose sound effect no copyright"
by MNC Music No Copyright
📎 YouTube
Licensed under Creative Commons Attribution 4.0


About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages