The aim of the game is to successfully move all cards from the bottom 8 board columns to the top 4 foundation columns.
You can move any face up card to any other face up card providing:
- the card being moved to is exposed at the bottom of the column (no cards below it)
- the cards are the same suit and is one value lower
- both cards aren't on the same column
For example, you can move 5♦ to 6♦ but not 8♦ to 7♦. Moving a card will also move all the cards below it.
If you clear out a column you can only move a K to fill that column. All cards below the K will also be moved to that column.
Cards can only be moved to the foundation columns in the following order: A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K.
- only one suit per column is allowed.
- you can only move an exposed card at the bottom of the column (no cards below it)
You can move cards by:
- clicking and dragging the card(s) to the desired column (non-touch devices only)
- clicking on the card you want to move and then clicking on the desired column. All cards below the selected card will be moved as well
- double clicking (or tapping) or swiping up on cards will move them to the foundation columns
yarn
yarn serve
yarn build
More information on testing can be found here
yarn test:unit
yarn test:e2e
yarn lint