C implementation of Yukon Solitaire, as a CLI game.
A short description of all available commands in the game.
- LD <filename>
This command loads a deck from the specified filename in the command (without file ending). The standard deck is name "default" and if no filename is specified it loads a standard deck of cards in the order ace, diamonds, hearts and spades where each suit is sorted in ascending order. - SW
Shows all the cards on the table by turning the face-up. - SI <split>
Shuffle the deck in an interleaved manner where the split is an optional input that tells. how the deck should be split (allowed numbers are ]1:52[). If no split is given the game choose a random value to split by. - SR
Shuffles the loaded deck in a random manner. - SD <filename>
This command saves the deck currently being used. If no name is specified, a default filename is assigned to the deck. Otherwise, the user can optionally choose under which name they want to save the current deck.
- P
Starts up the play phase and disables the commands from the startup phase. - Q
Quits the play phase with the current deck as is.
Move cards between columns and foundations with the following commands. C is used for columns and F for foundations.
- One card from column to column: C1- > C2. Move the bottom card from C1 to the bottom of C2
- Multiple cards from column to column: C1:H2->C2. Move H2 and all cards below from C1 to C2
- One card from column to foundation: C1:H2 -> F1. Move H2 from the bottom of C2 to F1 top. It is optional to specify the card, eg. C1 -> F1 is also valid.
- From foundation to column: F1 -> C1. Moves the top card from F1 to the bottom of C1.
The moves can only be done, if the move is valid according to game rules. Otherwise an error will be printed.
- QQ
Quits Yukon