Demonstrate your expertise by playing a deck of cards on an accordion interface.
At the start of the game, two face-up cards will be dealt to the middle of the screen. The remaining cards will be placed face-down in the stock pile at the bottom right corner. Clicking the stock pile will deal a face-up card to the immediate space on the right of the current face-up cards. When a row runs out of space, the next card is dealt to the row below.
If the top cards of two piles are of the same suit or rank, you can move a pile to another pile immediately to its left, or separated by two piles to its left. For example, if the top cards of five piles are 8 of spades, 6 of spades, 10 of diamonds, 8 of hearts, and Q of clubs, you can move the pile of 6 of spades or 8 of hearts to the top of the 8 of spades.
As you move piles, gaps may appear. Cards will move automatically to the left to fill the space. Your goal is to continue this process until all cards are compressed into one single pile.
Can you beat the odds and successfully achieve the goal? Give Accordion a try and find out!
Version 1.0.2: Updated arrow graphic in instructions page