krperry / solitaire-for-android

Automatically exported from code.google.com/p/solitaire-for-android
Apache License 2.0
0 stars 0 forks source link

Cannot always move all possible cards in a stack in Freecell #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a stack of alternating color cards in 
Freecell.
2. Try to move all (or even some) of the cards.
3. Some of the time the game will only give the 
option of moving the lowest few cards.

What is the expected output? What do you see 
instead?
All cards should be available to move from a valid 
stack.  Instead, sometimes only a few are 
available. 

What version of the product are you using? On 
what operating system?
1.12.1, on Android 2.0.1 running on a Motorola 
Droid. 

Please provide any additional information below.

Original issue reported on code.google.com by ibelongi...@gmail.com on 8 Mar 2010 at 11:17

GoogleCodeExporter commented 8 years ago
In freecell, you can only move the number of cards equivalent to the number of 
empty 
spaces plus one.  Technically you are moving one card at a time, filling in the 
blank spaces, and then recombining them into a single stack.

For example, if you have an empty space on the board and four empty cells, the 
maximum number of cards you can move to the empty space would be five.  The max 
you 
could move onto another card would be six (by putting the first five cards into 
the 
five empty cells/spaces and the sixth card on the new stack, then recombining). 
 It 
does get a little confusing if you have a space on the board because the game 
will 
allow you to select six cards but you would only be able to move a stack of 
five 
into the empty space.

Original comment by TrumpetM...@gmail.com on 16 Mar 2010 at 8:26

GoogleCodeExporter commented 8 years ago
this is not quite correct.
you should be able to move
(1+free spaces)*(1+free cells)
if you have 1 cell and 1 space, first card goes in cell, second on space, then 
first on second, third on cell, fourth on destination,third on 
destination,first on cell,second on destination, first on destination.
(1+1)*(1+1)=4 not 3 as you would suggest. 
it is annoying doing this manually. 
also if you move to a free space it must be taken out of the equation.

Original comment by trisb...@gmail.com on 29 May 2011 at 12:34