Skip to content

C# WPF Prism 7.1 implementation of the popular game, Minesweeper

License

Notifications You must be signed in to change notification settings

AndreiLucaci/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discontinued:

this project has been discotinued - what you see is what you get! Perhaps I'll open this again if I have the time

Minesweeper

Implementation of the original game written in C#, WPF, Prism 7.1

Download latest version (installer - packed)

  • will install under "C:\Program Files (x86)\Andrei Lucaci\Minesweeper":

Features:

  1. Three original custom boards:

    newGameImg

    1. Beginner: 8x8 with 10 mines
    2. Advanced: 16x16 with 40 mines
    3. Expert: 24x24 with 99 mines
  2. Information:

    infoImg

    1. About us
    2. Rules
  3. Header information:

    1. Number of mines (either valid or flagged) - left

    flagMineImg

    1. Restart game - displays also game states - middle

      1. Smile - new / ongoing game
      2. Glasses (cool) - win
      3. x.x face (dead) - loose
    2. Timer - right

    timerImg

  4. Stats - after each game you get the stats:

Screenshots

img1

Advanced ongoing game:

gameImg

Code:

The code is written in C# with WPF and Prism 7.1

The project structure is as follows:

  • Minesweeper.Engine:

    • Holds the logic of the application, all the computations and calculations
  • Minesweeper.Infrastructure:

    • Holds DTO's and configuration information globally available to all the application
  • Minesweeper.Models:

    • Holds the DTO's of the application
  • Minesweeper.Ui:

    • Handles all interaction of the ui

The dependency diagram shows something like this: dependencyImg

The code metrics shows information about the code. Currently the code's maintainability index is green, that is, it's not that of a spagetti code :) codeMetricsImg

Known issues:

  • a known issue is the slow loading time for the Expert games. The algorithm that generates the board still needs improvement.

  • code issues: there are still code issues, which will be solved in time: under implementation codeIssueImg

Pllaned features:

  • add save / open games
  • add records / time / configuration
  • add amazed face to the left / right click
  • stability improvements
  • add skins
  • fix code issues
  • redesign stats
  • redesign pop-ups

About

C# WPF Prism 7.1 implementation of the popular game, Minesweeper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages