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

https://github.com/fluttersmith/xo_game


https://github.com/fluttersmith/xo_game

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# ๐Ÿงฉ Advanced Xโ€‘O Game

๐Ÿ“Œ **Version:** 1.0.0
๐Ÿ“… **Last Updated:** [2, 2025]
๐Ÿ‘ค **Author:** [Ahmed Hamdy]
๐Ÿ”— **Repository:** [(https://github.com/FlutterSmith)]

---

## ๐Ÿ“– Overview

**Advanced Xโ€‘O Game** is a featureโ€‘rich Tic Tac Toe application built with **Flutter**. It leverages the power of the **BLoC** pattern for state management, integrates an adaptive AI with multiple difficulty levels, and provides full undo/redo functionality along with persistent game history storage via **sqflite**. The app boasts an intuitive, dynamic UI with light/dark theme support, offering a modern and polished gaming experience.

โœ… **Player vs Player and Player vs Computer Modes**
โœ… **Adaptive AI** (Easy, Medium, Hard, Adaptive)
โœ… **Undo/Redo Moves with Persistent Game History**
โœ… **Sleek UI with Theme Switching**

![Advanced Xโ€‘O Game Demo](https://media.giphy.com/media/tidaas6CGwqrcdtHz3/giphy.gif?cid=790b761126pc7x5gfnp1dwr940qmc6013pecz9mciuxco2gd&ep=v1_gifs_search&rid=giphy.gif&ct=g)

---

## ๐Ÿš€ Features

### ๐ŸŽฎ Game Modes
โœ” **Player vs Player (PvP)** for local multiplayer
โœ” **Player vs Computer (PvC)** with sophisticated AI

### ๐Ÿค– Adaptive AI
โœ” Multiple difficulty levels: **Easy**, **Medium**, **Hard**, and **Adaptive**
โœ” AI utilizes the minimax algorithm (with depth control) for challenging gameplay

### ๐Ÿ”„ Undo/Redo & Game History
โœ” **Undo** and **Redo** support for move corrections
โœ” **Persistent Game History** stored locally using **sqflite**

### ๐ŸŽจ Enhanced UI/UX
โœ” Responsive design with dynamic light/dark theming
โœ” Smooth animations and gradient backgrounds
โœ” Modern, iOS-inspired interface

---

## ๐Ÿ› ๏ธ Tech Stack

| Technology | Purpose |
|--------------------|---------------------------------------------------|
| **Flutter** | Crossโ€‘platform mobile app development |
| **Dart** | Primary programming language |
| **BLoC** | State management and business logic handling |
| **sqflite** | Local persistence for game history |
| **flutter_bloc** | BLoC pattern integration with Flutter |
| **Equatable** | Simplifying value comparisons in state classes |

---

## ๐Ÿš€ Installation

### ๐Ÿ“Œ Prerequisites
- โœ… **Flutter SDK** (Latest stable version)
- โœ… **Dart SDK** (Bundled with Flutter)
- โœ… **Android Studio / VS Code** (With Flutter extensions)

### ๐Ÿ“ฆ Steps to Run

1๏ธโƒฃ **Clone the Repository**
```
git clone https://github.com/yourusername/advanced_xo_game.git
cd advanced_xo_game

```
2๏ธโƒฃ Install Dependencies
```
flutter pub get
```
3๏ธโƒฃ Run the App
```
flutter run
```

๐Ÿ“Œ Future Improvements
โœ… Custom Board Sizes & Win Conditions

โœ… Enhanced Animations & Sound Effects

โœ… Additional Game Modes & Online Leaderboards

โœ… Localization for Multiple Languages

๐Ÿ† Contributors
DM me

๐Ÿ“ License
This project is licensed under the MIT License. See the LICENSE file for details.

๐Ÿ“ข Enjoy playing Advanced Xโ€‘O Game! If you find this project helpful or exciting, please consider ๐ŸŒŸ starring the repository and contributing to its ongoing development. ๐Ÿš€๐Ÿ”ฅ