Skip to content

ambertsaiweichen/Solitaire-Game-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🔎 Overview

The project includes:

Solitaire I – Picture Card Elimination

A card elimination game where picture cards (Jacks, Queens, and Kings) are removed across multiple rounds. Features:

  • 52-card deck simulation
  • Dynamic 4×4 game layout generation
  • Automated picture-card detection and removal
  • Multi-round gameplay
  • Probability estimation through Monte Carlo simulation

Solitaire II – Stack Building Solitaire

A stack-based solitaire game where cards are organised into increasing and decreasing suit sequences.

Features:

  • Multi-stack card management
  • Rule-based placement engine
  • Interactive command-line viewer
  • Round-by-round game state tracking
  • Statistical outcome simulation

🛠️ Technologies

▪️ Python
▪️ Random Module
▪️ Collections
▪️ Itertools

💡 Technical Highlights

▪️ Python Programming
▪️ Object-Oriented Design Principles
▪️ Algorithm Design
▪️ Simulation Modelling
▪️ Monte Carlo Methods
▪️ Probability Analysis
▪️ Data Structures
▪️ Command-Line Application Development
▪️ Unicode Rendering

📈 Key Learning Outcomes

▪️ Designed and implemented complex game-state logic
▪️ Developed deterministic simulation systems using seeded randomisation
▪️ Applied probability estimation techniques through large-scale simulations
▪️ Built reusable Python functions for modular and maintainable code
▪️ Implemented robust input validation and rule-based decision systems

About

A Python implementation of two solitaire card games developed as part of advanced programming coursework.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages