Iqbolshoh /
javascript-xo-game
🎮 Tic-Tac-Toe (XO) — A classic game built with HTML 🌐, CSS 🎨, and JavaScript ⚙️. ✨ Features: 🧩 Responsive board 🖱️ Interactive gameplay 🏆 Win detection 🔁 Restart option
Loading repository data…
monika-117 / repository
A classic Tic-Tac-Toe game built with a modern, responsive design and a focus on a pure vanilla JavaScript, HTML, and CSS stack. Challenge yourself against a custom-built AI with three distinct difficulty levels, designed to provide a fun and challenging experience without relying on external frameworks.
A classic Tic-Tac-Toe game built with a modern, responsive design and a focus on a pure vanilla JavaScript, HTML, and CSS stack. Challenge yourself against a custom-built AI with three distinct difficulty levels, designed to provide a fun and challenging experience without relying on external frameworks.
The AI was developed without using the traditional Minimax algorithm. Instead, it relies on a heuristic-based expert system that evaluates the game state based on a clear hierarchy of strategic priorities.
The "Hard" AI acts as a near-perfect opponent by following a deterministic priority list for its moves:
This AI uses a subset of the "Hard" AI's logic (Win, Block, Center Control) but introduces probabilistic error injection. There is a calculated chance (~25%) on each turn that it will ignore the optimal move and instead choose a random, often suboptimal, one. This simulates a skilled player who is prone to making occasional mistakes.
The "Easy" AI is primarily a reactive and defensive agent. Its main priority is to block the player from winning. It only rarely checks for its own winning opportunities and will otherwise make random moves, simulating a beginner player.
If you have Git installed, use the following command to clone the repository:
git clone https://github.com/monika-117/tictactoe-game.git
Navigate to the project directory:
cd tictactoe-game
Open index.html in your web browser to use the application.
https://github.com/monika-117/tictactoe-gameindex.html in your web browser to use the applicationX or O.Easy, Medium, or Hard.Tested and working on:
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
Developed and designed by Monika L
Selected from shared topics, language and repository description—not editorial ratings.
Iqbolshoh /
🎮 Tic-Tac-Toe (XO) — A classic game built with HTML 🌐, CSS 🎨, and JavaScript ⚙️. ✨ Features: 🧩 Responsive board 🖱️ Interactive gameplay 🏆 Win detection 🔁 Restart option
Shanisoni /
"Experience the timeless fun of Tic-Tac-Toe! Play against a friend or challenge the computer in this sleek, user-friendly web version. With intuitive controls and stylish design, enjoy endless rounds of strategic gameplay. Simple yet addictive, it's classic entertainment for all ages!"
bocaletto-luca /
Tic Tac Toe Web Game Two-Player VS is a modern, browser-based version of the timeless Tic Tac Toe game, reimagined for local head-to-head multiplayer competitions. With smooth animations and an intuitive interface, this lightweight web game allows you and a friend to battle it out on the classic 3x3 grid—all without any installation.
marcft /
Play with a friend, customize player names, and experience the joy of victory in this classic two-player game. Simple, interactive, and endlessly entertaining!
Aklilu-Mandefro /
A classic Tic-Tac-Toe game app built with JavaScript. Have fun playing
Muhammad-Shaheer-Junaid /
A modern Tic-Tac-Toe game built with HTML, CSS, and JavaScript, featuring a sleek design, smooth gameplay, and automatic win detection. Play with a friend (One vs One) or with Computer/AI (One vs PC), restart instantly, and enjoy the classic game with a fresh look! 🎮✨