Skip to content

Card Stack - An Android card game with AI players and secure random shuffling. No trademark infringement.

License

Notifications You must be signed in to change notification settings

ssfdre38/match-mania

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

98 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Match Mania - Android Card Game

License Android Latest Release Website

Match Mania is an Android card game featuring AI opponents, player statistics, customizable profiles, and cryptographically secure random card shuffling.

๐ŸŒ Official Website: https://matchmaina.ssfdre38.xyz

๐Ÿ“‹ Table of Contents

Official Website

๐ŸŒ https://matchmaina.ssfdre38.xyz

Visit our official website for:

  • ๐Ÿ“ฅ Direct APK downloads for all versions
  • ๐Ÿ“ Complete changelog and release notes
  • ๐Ÿ“ธ Screenshots and game information
  • ๐Ÿ“š Full documentation and guides
  • ๐Ÿงช Automated Testing System - Developer resources
  • โ„น๏ธ About the game and developer info

Recent Website Updates:

  • โœจ Testing page redesigned for better consistency with main site
  • ๐Ÿ“ฑ Enhanced responsive design for mobile and tablet devices
  • ๐ŸŽจ Improved visual hierarchy and professional polish
  • ๐Ÿ“– Complete testing documentation with quick start guide

Features

๐ŸŽฎ Core Gameplay

  • 4-Player Game: Play against 3 intelligent AI opponents with unique names and avatars
  • True Randomness: Uses Java's SecureRandom for cryptographically secure card shuffling
  • Smart AI Players: Strategic AI decisions based on card types and hand composition
  • Classic Card Game Rules: Match cards by color or number with special action cards
  • Customizable Rules: 8 different rule options to customize gameplay

๐Ÿ‘ค Personalization

  • Custom Player Name: Choose your own name (up to 20 characters)
  • 48 Avatar Options: Select from emojis including smileys, people, animals, and symbols
  • Profile Persistence: Your name and avatar are saved across games

๐Ÿ“Š Statistics System

  • Complete Stats Tracking: Games played, won, lost, win rate
  • Card Statistics: Track cards played, drawn, special cards, and wilds
  • Time Tracking: Total play time, average game duration, fastest win, longest game
  • Win Streaks: Current streak and all-time best streak
  • Match History: View your last 50 games with details
  • Reset Option: Clear stats when you want a fresh start

๐Ÿš€ Updates & Settings (NEW in v2.3!)

  • OTA Update System: Automatic update checking via GitHub releases
  • Check for Updates: Manual update check in Settings
  • 8 Customizable Rules: Action stacking, jump-in, seven-zero, progressive draw, and more
  • Alphabetized Settings: Easy-to-find game configuration options

๐ŸŽจ Modern UI

  • Beautiful Card Designs: Color-coded cards with visual icons
  • Dark Theme Interface: Easy on the eyes
  • Screen Rotation Support: Play in portrait or landscape
  • 4-Button Header: Easy access to Profile, Stats, About, and Settings
  • Enhanced Game Over: View stats immediately after games

Game Rules

Setup

  • Each player starts with 7 cards
  • The remaining cards form the draw pile
  • One card is placed face-up to start the discard pile

Gameplay

  • Players take turns matching the top card by color or number
  • Special cards:
    • Skip (S): Next player loses their turn
    • Reverse (R): Reverses the direction of play
    • Draw Two (+2): Next player draws 2 cards and loses their turn
    • Wild (W): Can be played on any card, player chooses the color
    • Wild Draw Four (W+4): Next player draws 4 cards, player chooses color

Winning

  • First player to play all their cards wins!

Building the App

Prerequisites

  • Android Studio (latest version recommended)
  • Android SDK 24 or higher
  • Java 8 or higher
  • Git (for cloning the repository)

Quick Start for Developers

Using the Developer Build Script (Recommended):

# Clone the repository
git clone https://github.com/ssfdre38/match-mania.git
cd match-mania

# Make script executable
chmod +x scripts/dev-build.sh

# Build debug APK (fastest for testing)
./scripts/dev-build.sh --debug

# Build and install to connected device
./scripts/dev-build.sh --debug --install

# Clean build with tests
./scripts/dev-build.sh --debug --clean --test

# See all options
./scripts/dev-build.sh --help

See scripts/README.md for complete documentation on developer tools.

Manual Build Steps

  1. Open the project in Android Studio
  2. Wait for Gradle to sync dependencies
  3. Build the APK:
    # Debug build (for testing)
    ./gradlew assembleDebug
    
    # Release build (requires signing keys)
    ./gradlew assembleRelease
  4. The APK will be located at:
    app/build/outputs/apk/debug/app-debug.apk
    app/build/outputs/apk/release/app-release.apk
    

Note: Release builds require signing keys. For development and testing, use debug builds.

Installation

Download

Download the latest APK from:

Choose the right APK:

  • MatchMania-release-vX.X.X.apk - For regular use (recommended)
  • MatchMania-debug-vX.X.X.apk - For testing/debugging only

Requirements

  • Android 7.0 (API 24) or higher
  • ~5 MB of free storage

Installation Steps

  1. Enable Unknown Sources

    • Android 8.0+: Settings > Apps > Special Access > Install Unknown Apps > Select your browser/file manager > Allow
    • Android 7.x: Settings > Security > Unknown Sources > Enable
  2. Download and Install

    • Download the release APK
    • Tap the downloaded file
    • Follow the installation prompts

Troubleshooting "App Not Installed" Error

If you get an "App not installed" or "Package manager error" when trying to install:

  1. Uninstall Previous Version (Most Common Fix)

    • The new version uses a different signature
    • Go to Settings > Apps > Match Mania > Uninstall
    • Then install the new APK
  2. Clear Download Cache

    • Re-download the APK file
    • Make sure the download completed successfully
  3. Check Storage Space

    • Ensure you have at least 10 MB free space
  4. Verify Android Version

    • Check Settings > About Phone > Android Version
    • Must be 7.0 or higher

For Developers

If building from source:

# Quick build and release
./build_and_release.sh 2.0.2

# Manual build
./gradlew clean assembleDebug assembleRelease

# Install to connected device
adb install -r app/build/outputs/apk/release/app-release.apk

๐Ÿš€ Recent Development (October 2025)

Latest Improvements

v2.3.15 - Website Design Consistency (Current)

  • ๐ŸŽจ Testing page completely redesigned to match main site aesthetics
  • ๐Ÿ“Š Enhanced stats section with larger numbers and better visual impact
  • ๐Ÿ”ข Numbered step badges in Quick Start guide for better UX
  • ๐Ÿ“ฑ Improved mobile responsiveness across all sections
  • โš–๏ธ Maintained complete copyright and attribution compliance

v2.3.14 - Layout & Rotation Support

  • ๐Ÿ“ฑ Fixed player card layout appearing below screen on phones
  • ๐Ÿ”„ Added full screen rotation support (portrait/landscape/all orientations)
  • ๐Ÿ“ Improved ScrollView and layout constraints
  • โœ… Better tablet and large screen support

v2.3.13 - Perfect Card Display

  • ๐ŸŽด Player cards now display at full height without cutting
  • ๐Ÿ“ Optimized space allocation (top card reduced, player area increased)
  • ๐Ÿ’ฏ Guaranteed 500dp height for player card area
  • ๐Ÿ–ผ๏ธ Cards display at ideal 240dpร—360dp on tablets

Testing System Development

  • ๐Ÿงช Created comprehensive automated testing framework
  • ๐Ÿ“‹ 19 test cases across 4 categories (UI, Gameplay, OTA, Performance)
  • ๐Ÿ–ฅ๏ธ Support for 5 Android versions (API 24-33)
  • ๐Ÿ“ธ Automatic screenshot capture on errors
  • ๐Ÿ“Š Professional HTML reports with statistics
  • ๐ŸŒ Dedicated testing documentation website

๐Ÿงช Automated Testing System

Match Mania includes a comprehensive automated testing system for developers:

Features:

  • โœ… Tests across 5 Android versions (API 24, 26, 28, 30, 33)
  • โœ… 19 automated test cases covering UI, gameplay, OTA, and performance
  • โœ… Automatic screenshot capture on errors
  • โœ… Professional HTML reports with test results and statistics
  • โœ… Easy configuration via JSON
  • โœ… Complete documentation

Quick Start:

cd emulator-testing
./setup-system-images.sh    # One-time setup (~2-4 GB download)
./run-comprehensive-tests.sh # Run all tests (~50-75 minutes)

Learn More:

Version History

Latest Releases:

  • v2.3.15 (Oct 2025) - Website design consistency improvements
  • v2.3.14 (Oct 2025) - Phone layout fixes and full screen rotation support
  • v2.3.13 (Oct 2025) - Perfect player card display on all screen sizes
  • v2.3.12 (Oct 2025) - Tablet card width improvements (33% wider cards)
  • v2.3.11 (Oct 2025) - OTA user choice flow with auto-install
  • v2.3.10 (Oct 2025) - Enhanced tablet card display and about page
  • v2.3.9 (Oct 2025) - Always auto-download OTA updates
  • v2.3.8 (Oct 2025) - Tablet card width fix for landscape mode
  • v2.3.7 (Oct 2025) - Android 13+ OTA update fix
  • v2.3.6 (Oct 2025) - Tablet card display improvements
  • v2.3.5 (Oct 2025) - Website-first OTA updates with GitHub fallback
  • v2.3.0 (Oct 2025) - OTA update system with automatic GitHub release checking
  • v2.2.7 (Oct 2025) - Alphabetized game settings
  • v2.2.0 (Oct 2025) - Smooth card animations and visual effects

Previous Versions:

  • v2.0.0 - Match Mania rebrand with signed APK, statistics, and profile customization
  • v1.4.0 - Added statistics tracking and profile customization
  • v1.3.0 - Custom game rules & settings
  • v1.0.0 - Initial release

For detailed release notes, see CHANGELOG.md, docs/releases/, or GitHub Releases

๐Ÿ“š Documentation

Comprehensive documentation is available in multiple locations:

Wiki & Guides

Project Documentation

Organized documentation in the docs/ directory:

  • ๐Ÿ“ฆ Release Notes - Version-specific release documentation
  • ๐Ÿ› Bug Fixes - Bug fix summaries and patches
  • โœจ Features - Feature implementation details
  • ๐Ÿ”ง Development - Development process and reviews
  • ๐Ÿงช Testing - Test reports and quality assurance
  • ๐Ÿ“š Archives - Historical documents and references

Additional Resources

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide to get started.

Ways to Contribute

Developer Quick Start

# Clone and build
git clone https://github.com/ssfdre38/match-mania.git
cd match-mania
./scripts/dev-build.sh --debug --install

# See scripts/README.md for complete developer guide

Important for Contributors:

  • Use scripts/dev-build.sh for local builds
  • Don't modify version numbers (maintainer handles releases)
  • Test thoroughly before submitting PRs
  • Follow the code style in existing files

๐Ÿ’ฌ Support

Need help? Have questions?

๐Ÿ’– Support Development

Match Mania is free and open source. If you enjoy the game, consider supporting its development:

Your support helps maintain the app, add new features, and keep it free for everyone!

๐Ÿ”„ CI/CD

This project uses GitHub Actions for:

  • โœ… Automated builds on push/PR
  • ๐Ÿš€ Automated releases with signed APKs
  • ๐Ÿงช Code quality checks and linting
  • ๐Ÿ“ฆ Artifact management

See .github/workflows for workflow configurations.

๐ŸŒŸ Acknowledgments

Thanks to all contributors who help make Match Mania better!

๐Ÿ‘จโ€๐Ÿ’ป Developer

Created by: Daniel Elliott
Email: [email protected]
Copyright: ยฉ 2025 Daniel Elliott

๐Ÿ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

What This Means

  • โœ… You can use this code for personal and commercial purposes
  • โœ… You can modify and distribute the code
  • โœ… You must include the license and copyright notices
  • โš ๏ธ This software is provided "as is" without warranties

โš–๏ธ Legal Notice

This game is an original creation and does not use any trademarked names, logos, or designs. All game mechanics and visual elements are implemented independently.


Enjoy Match Mania! ๐ŸŽฎ If you like this project, please โญ star it on GitHub!

About

Card Stack - An Android card game with AI players and secure random shuffling. No trademark infringement.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published