Five Piles Game

Five Piles is a solitaire-like card game in which you are meant to match pairs of cards such that their combined values add up to 13. Upon a match, the cards are removed from play which reveals the cards below them in the pile if there are any. The objective is to match every card with a pair, ultimately removing all cards from play and therefore winning the game. This is very difficult, so a more reasonable goal is to simply make as many matches are you reasonably can until you inevitably run out of matches to make, at which point you will be prompted with a loss screen. Additionally, there is a time penalty where you gradually lose points as time goes on, so quickly matching pairs will result in a higher score than doing so slowly.

Upon completion of each game, the score and various statistics will be recorded and saved locally. If the score is high enough to beat the other local scores, it will be displayed in the Statistics page, which is accessed from the main menu. This is all dependent on the profile that you either selected at the main menu, or that you inputted before the game started.

It’s pretty fun though. Give it a try or play with the code yourself:

https://www.github.com/pdq278/fivepiles