Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

MemoryGame

A classic memory-matching game built with WPF and following the MVVM pattern.

Overview

MemoryGame is a desktop application built in C# using Windows Presentation Foundation (WPF).
It presents a grid of hidden cards, and the player's goal is to find and match pairs of identical images.

The game supports:

  • Player login
  • Avatar selection
  • Adjustable board size
  • Adjustable timer
  • Save/load functionality
  • Statistics

Features

  • Player accounts: Login and select avatars.
  • Adjustable board: Choose grid size (e.g., 4x4, 6x6).
  • Adjustable timer: Countdown timer that can be set by the player to limit game duration.
  • Save/Load: Continue your game later.
  • MVVM pattern: Clean separation of UI and logic.
  • User-friendly interface: Simple and intuitive design with WPF.

Getting Started

Follow these instructions to run the project locally.

Prerequisites

  • Windows OS
  • Visual Studio with WPF support
  • .NET framework compatible with WPF (e.g., .NET 6 or .NET Framework 4.x)

Installation

  1. Clone the repository:
git clone https://github.com/al3ssVil/MemoryGame.git
  1. Open the solution in Visual Studio.

  2. Build the project.

Usage

  1. Launch the application.

  2. Create or select a player profile and choose an avatar.

image
  1. Pick a board size and timer:
    • Use the default board (4x4) with the default timer (60 seconds). You click Standard and after New game
    • Or customize the board size and timer to your preference, after that, you presse Apply Custom Size and New Game.
image image
  1. Click cards to reveal them and find matching pairs.
image
  1. Save your progress and load previous games as needed.

  2. When the game ends:

    • If all pairs are matched within the timer, you win.
    • Player statistics are updated automatically: total games played and games won. image

Architecture & Technologies

WPF (Windows Presentation Foundation) – UI framework.

MVVM (Model-View-ViewModel) – Design pattern for separation of concerns.

C# – Primary programming language.

Project Structure:

Models → Game data and player profiles

ViewModels → Logic and data binding

Views → XAML files for UI

Persistence: Game progress saved via local file storage or serialization.

About

Memory Game is a classic memory matching game built with WPF and following the MVVM pattern. Players log in, choose an avatar, and try to match pairs of images on a grid. The game features customizable board sizes, a timer, and the ability to save and load game progress.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages