Font size
  • A-
  • A
  • A+
Site color
  • R
  • A
  • A
  • A
Skip to main content
Skill-Wanderer Dojo
  • Home
  • More
You are currently using guest access
Log in & Register
Skill-Wanderer Dojo
Home
Expand all Collapse all

Build a Simple Solitaire Game (Core Mechanics)

  1. Programming
  2. Programming Fundemental
  3. Flutter Flame
  4. Assignment: Build a Simple Solitaire Game
  5. Build a Simple Solitaire Game (Core Mechanics)
Completion requirements
Opened: Thursday, 25 December 2025, 12:00 AM

๐Ÿ“˜ Overview

In this assignment, you will build a simplified Solitaire-style card game using Flutter and the Flame Engine.

You are required to find your own assets (card images and audio files) to use in the game.

This assignment focuses on:

  • Drag & drop mechanics

  • Sprite layering and positioning

  • Sound effects & background music

  • Flame game structure

  • Git branching workflow

๐Ÿ“– Solitaire Rules Reference (Required Reading):
๐Ÿ‘‰https://en.wikipedia.org/wiki/Klondike_(solitaire)

โš ๏ธ You are not required to implement all official Solitaire rules.
The focus is on interaction, audio, and structure.


๐ŸŽฏ Learning Objectives

By completing this assignment, you will be able to:

  • Implement drag-and-drop cards using Flame

  • Organize a Flame game using components

  • Play sound effects triggered by user actions

  • Manage background music with multiple tracks

  • Handle basic rule validation

  • Build a structured 2D game using Flame


๐ŸŽฎ Game Requirements (ALL REQUIRED)

1. Simplified Solitaire Layout

Your game must include at least:

  • One tableau area (multiple columns)

  • One foundation area

  • Card front and back

  • Cards positioned in stacks or columns

You do not need to implement:

  • Stock / waste piles

  • Full color-alternating rules

  • Advanced scoring or timers


2. Card Assets

  • Use sprite images for cards

  • Cards must visually stack correctly

  • Card front and back must be distinguishable


3. Card Movement

Implement drag & drop:

  • Drag cards using mouse or touch

  • Drop cards onto target areas

  • Invalid drop โ†’ card returns to original position

  • Valid drop โ†’ card snaps into place

Only single-card movement is required.


4. Sound Effects

Add sound effects for:

  • Card pick-up or move

  • Card drop

  • Invalid move (optional)

Sounds must trigger at the correct interaction moment.


5. Background Music

Implement background music that:

  • Starts automatically when the game runs

  • Uses multiple music tracks

  • When one track finishes:

    • Play the next track, or

    • Randomly select a new track

  • Continues indefinitely without overlapping


6. Basic Game State

Include at least one of the following:

  • A โ€œYou Winโ€ message

  • A reset / restart button

  • Simple detection that all cards are placed in the foundation


7. Visual Design

  • Clear spacing between piles

  • Correct visual stacking order

  • Solid color or background image allowed


๐Ÿ”„ Git Workflow (Required)

You must follow this branching flow:

ย 
dev โ†’ beta โ†’ main

Rules:

  • All development happens in dev

  • Merge dev โ†’ beta

  • Merge beta โ†’ main

  • No direct commits to main


๐Ÿ“ Submission Requirements

1. GitHub Repository

Submit:

  • GitHub repository URL

  • Repository must include:

    • dev, beta, main branches

    • A working Flame game


2. README.md (Required)

Your README must include:

  • Game description

  • Rules reference link

  • How to play (controls)

  • Features completed

  • Known limitations / incomplete rules


๐Ÿ Evaluation Criteria

You pass this assignment if:

โœ” Cards drag & snap correctly
โœ” Sound effects trigger properly
โœ” Background music switches correctly
โœ” Git workflow is respected

Previous activity Flutter Flame Engine Mini-Game

Contact us

Follow us

You are currently using guest access (Log in & Register)
Powered by Moodle

This theme was proudly developed by

Conecti.me