Skip to content

hristovalev7/Solitaire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solitaire

A simple Solitaire game built using the ggez Rust library

Gameplay demo

SolitaireDemo

Coming soon

A graphical replacement for the difficulty selector at the start of the game which currently waits the user to type "easy" or "hard" in the console.

How to play

Description

Solitaire is played with a standard deck of 52 cards. There are 7 ordinary piles, 1 deck, 1 discard pile, and 4 final piles. Initially there will be 1 card in the first pile, 2 cards in the second pile, 3 cards in the third pile, etc. and only the top card of each pile will be face-up.

Moving the cards

You can move cards to another pile by following these rules:

  1. The card you are trying to move needs to be exactly 1 rank lower and of different color than the card you are moving it onto.
  2. If the destination pile is empty, only a King can be put there (There are no limitations regarding the color and the suit of the King in this case).
  3. You can also move subpiles1 if the card at the bottom of the subpile can be moved according to the rules described above.

Keep in mind that only face-up cards can be moved!

The goal of the game

The goal is to move all cards to the four final piles. Note that each final pile corresponds to a specific suit and that cards need to be arranged in ascending order2.

Footnotes

  1. A subpile is any contiguous part of an ordinary pile with more than 1 element

  2. Ascending order of cards: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K

About

A Solitaire game built using ggez

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages