Color Wars is a two-player strategic Android game where players engage in a battle of colors to dominate a 5x5 grid. Designed with intelligent AI that adapts its strategy based on the selected difficulty level, this game challenges players to think critically and strategically to outmaneuver their opponents.
- Three AI Difficulty Levels:
- Easy: Fuzzy Logic for basic decision-making.
- Medium: Genetic Algorithms for evolving strategies.
- Hard: Alpha-Beta Pruning for optimal moves.
- Turn-Based Strategy: Engage in a thoughtful and tactical gameplay experience.
- Chain Reactions: Trigger cascading events that can change the course of the game.
- Choose Your Difficulty: Start by selecting a difficulty level—Easy, Medium, or Hard.
- Place Your Circle: Click on any square on the 5x5 grid to place your first red circle.
- Increase Circle Value: Click on your circles to add dots, increasing their value up to 4.
- Spread and Conquer: Once a circle reaches 4 dots, it spreads to adjacent squares, capturing opponent circles.
- Win the Game: Dominate the entire grid or eliminate your opponent’s circles to win.
- Development Platform: Android Studio
- Programming Language: Java
- Artificial Intelligence: Fuzzy Logic, Genetic Algorithms, Alpha-Beta Pruning
- User Interface: XML Layouts
- Version Control: Git
- Testing and Debugging: Android Emulator, Logcat
Simulates human-like decision-making by considering degrees of truth rather than binary logic. Ideal for beginners.
Inspired by natural selection, this AI evolves its strategy over multiple generations, offering a dynamic and adaptive challenge.
Optimizes decision-making by pruning irrelevant branches in the decision tree, ensuring the AI makes the most strategic moves.
Color Wars isn’t just a game—it's a learning platform. By playing, users gain insights into:
- Strategic Thinking and Problem-Solving
- AI Algorithms in Action: Fuzzy Logic, Genetic Algorithms, Alpha-Beta Pruning
- Game Theory and Decision-Making
app/src/main/java/
: Core game logic and AI implementations.app/src/main/res/layout/
: XML files for UI design.app/src/main/assets/
: Game assets such as images and icons.docs/
: Additional documentation and resources.
- Game Design: Conceptualized the 5x5 grid and game mechanics.
- UI Design: Crafted a user-friendly interface with XML layouts.
- AI Integration: Implemented AI algorithms for different difficulty levels.
- Testing & Debugging: Ensured a seamless gameplay experience using Android Emulator and Logcat.
Game.Demo.mp4
- Clone the repository:
git clone https://github.com/yourusername/ColorWars.git
- Open in Android Studio.
- Build and run the app on an emulator or physical device.
Contributions are welcome! If you have improvements or bug fixes, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues while using Colors Wars or have questions, please open an issue in the GitHub repository. We'll be happy to help you out.