Skip to content

joedaws/solitaire

Repository files navigation

solitaire

A CLI for solitaire (Klondike).

Usage

  • The usages are of the form solitaire <command>
  • Use solitaire with no command to see available commands.

Setup

  • Install ghcup which will furnish you with stack and a version of ghc.
  • Install appropriate versions of ghc and stack according to the project files.
  • Run stack install to copy the solitaire executable to local-bin.
  • From here you can either append the executable to your path or choose to include the local-bin in your path.

Game state

-C||**|**|**|**|**|**|AC
-S||**|**|**|**|**|3H
-H||**|**|**|**|4D
-D||**|**|**|XH
  ||**|**|3D
**||**|5C
**||9C
  • ** Represents a card with hidden state a.k.a. a face down card.
  • -C Represents an empty foundation for the club suit.

Suits

  • C club
  • S spade
  • H heart
  • D Diamond

Ranks

The numeric ranks are just the number except 10.

  • X 10
  • A Ace
  • J Jack
  • Q Queen
  • K King

About

A CLI for hinting next states in solitaire

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published