Solitaire card games/Accordion
The object of this game is to compress the entire deck into one pile like an accordion. hence its name.
No matter the layout variant, the game is the same. A pile can be moved on top of another pile immediately to its left or separated to its left by two piles if the top cards of each pile have the same suit or rank. Gaps left behind are filled by moving piles to the left.
There are two variants of the game in terms of how the game begins.
In one variant, the cards are laid out one by one and are immediately put into play if possible. The number of cards to be laid out range from just one card to how many cards the width of the table can allow (usually a second or third row is constructed in the process). While practical, it also allows an element of surprise as the player does not know the next card to be dealt until all possible plays are exhausted.
In another variant, the cards are spread out in one line. While this variant allows for some tactics to be applied, it can prove to be cumbersome when played with a real deck.
Here's an example:
According to this example, either 6♠ or 5♥ can be placed over 5♠. These are the only allowable moves.