Kh-Mudassar / solitaire-for-android

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

illegal multi-card moves in Forty Theives #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Play until a space has been achieved and there is a 2-or-more card 
sequence in suit (e.g. 4s-5s, or 3h-4h-5h, etc.)
2. move two cards from sequence into space
3. Notice the two cards successfully moved to space.

What is the expected output? What do you see instead?

The expectation is that this move is illegal. When you have a space, any 
single card can be moved there. This can be used to move two cards to 
another target stack, such as 4s-5s moved to 6s, by moving 4s->space, 5s-
>6s, 4s->5s.  In general you can move n+1 cards when n spaces are present. 
However, if the target is a space, then only n cards can be moved.

What version of the product are you using? On what operating system?
Version 1.12.1 on Android 1.5 on Google Ion.

Please provide any additional information below.

Original issue reported on code.google.com by jsegh...@cequint.com on 6 Jul 2009 at 9:27

GoogleCodeExporter commented 8 years ago
Long time no see,
 This patch includes logic to deal this empty stack issue in my GenericStack 
implementation. This should fix this issue in the Forty Thieves game.

Original comment by sirpe...@gmail.com on 9 Oct 2009 at 3:49

Attachments: