A game for one player, with 48 cards: 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K in four suits (hearts, spades, diamonds,
clubs).
At the beginning of the game all cards are randomly spreaded into four rows:
in the first row there are 12 cards, in the second and third row there are 13 card and in the fourth row there are 14
cards. There are two empty cells between the cards, in the form of two adjacent cards - one is vertically-oriented,
the other is horizontally-oriented.
By clicking on the first of a couple of the adjacent cards, this one is marked by lighting and by clicking on the second
card of this couple, both are placed to the empty cell of corresponding shape. We can place to the empty cell only
such a couple of cards, from which left card (in the case of horizontal cell) or upper card (vertical cell) will be
situated adjacent a card of the same suit independently of its value, or no card on the left side of the row. The
cards that are adjacent right to the cells on the same row, can't be moved.
Your goal is to create 4 sequences 2-3-4-5-6-7-8-9-10-J-Q-K in 4 suits. The empty cells should remain on the end of
the sequences in the second, the third and the fourth row.