Skip to content

gracemakai/Solitaire

Repository files navigation

🃏 Flutter Solitaire

A beautiful, smooth Solitaire game built using Flutter and the Flame game engine. Designed to be fun, fast, and surprisingly satisfying.

🚀 Features

  • Classic Solitaire gameplay (a.k.a Klondike)
  • Smooth card animations
  • Custom draw modes (1-card / 3-card)
  • Foundation, stock, waste, and tableau pile logic
  • Touch & drag card interaction
  • Restart with new or same deal
  • Built using Flame's component system
  • Mobile-optimized layout

🌐 Play Online Netlify URL: [https://solitairee.netlify.app/]

📸 Screenshots

Screenshot 2025-06-17 at 12 59 36 PM Screenshot 2025-06-17 at 12 59 13 PM Screenshot 2025-06-17 at 12 55 23 PM Screenshot 2025-06-17 at 12 52 11 PM Screenshot 2025-06-17 at 12 44 32 PM Screenshot 2025-06-17 at 12 59 32 PM Screenshot 2025-06-17 at 12 59 28 PM Screenshot 2025-06-17 at 1 26 50 PM Screenshot 2025-06-17 at 1 31 21 PM

🛠️ Built With

  • Flutter – for cross-platform UI
  • Flame – for game loop & rendering
  • Dart – for logic and structure

🎮 Controls

Action Input
Move cards Drag & drop
Draw new cards Tap stock pile
Flip top cards Automatic after move
Restart game Tap one of the top buttons

🎯 Roadmap Ideas

  • Victory celebration 🎉
  • Card sound effects
  • Custom themes (dark mode, retro, etc.)
  • Undo button
  • Timer & score system

🧠 Dev Notes

Cards are dynamically generated and shuffled using a consistent seed when needed. Button interactions are built using Flame’s AdvancedButtonComponent with custom skins.

You can find all the core logic in:

  • solitaire_world.dart
  • components/card.dart
  • components/foundation_pile.dart
  • components/stock_pile.dart
  • components/waste_pile.dart
  • components/tableau_pile.dart

🏗️ How to Run

Make sure you have Flutter installed.

git clone https://github.com/gracemakai/solitaire.git
cd solitaire
flutter pub get
flutter run

About

A card game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •