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 ObservableColections, 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.
Downloaded 3x (1.9 MB)
Application includes source codes in language C# .NET
No one has commented yet - be the first!