Discount week - May Swift week
Save up to 80 % on our Swift e-learning courses. Only this week!
Get up to 60 % extra points for free! More info

Memory (Pexeso) game in C# WPF

Simple application Pexeso (Memory) game in WPF generates randomly placed pairs of cards using the random number generator Random and HashSet. Cards are generated as objects from bitmaps stored in the img folder. The game calculates position of mouse clicks, reveals two clicked cards, and after a specific time interval it covers them back. It works with two 2D arrays, the first one stores the cards themselves and their labels in as Integers, the other one keeps the card status which is covered / revealed / match. The objects to be rendered are converted into two ObservableColec­tions, which are bound via ItemsControl to the corresponding Canvases, which overlap each other in the main window. The time is measured until all matching card pairs are revealed; the best time and player's name are saved into a file.


Gallery

Program was created in 2017.

 

Download

Downloaded 2x (1.9 MB)
Application includes source codes in language C# .NET

 

 

Program has been written for you by Bruno Schwarzbach
Avatar
Do you like this article?
No one has rated this quite yet, be the first one!
All articles in this section
C# .NET Community Projects - WPF Form Applications
Activities (2)

 

 

Comments

To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

No one has commented yet - be the first!