react-solitaire icon indicating copy to clipboard operation
react-solitaire copied to clipboard

Dragging a card from inside a tableau pile and dropping it onto a foundation pile is possible and corrupts the deck

Open specious opened this issue 9 years ago • 2 comments

I dragged a 4h from a tableau pile ending in ... 4h 3s and dropped it onto a foundation pile that had 3h at the top. This resulted in the 4h being duplicated and the 3s disappearing:

two-4s

To the best of my knowledge (from playing Solitaire back in Windows 3.1) you should not be able to remove a card from inside a pile.

This was the situation before the bug manifested:

previous-step

specious avatar Jan 26 '16 05:01 specious

Hi @specious, thanks for opening this issue :smiley:

I'll have a look asap, seems like a nasty bug!

One question though, you managed to reproduce the issue by playing the game in a linear fashion, or you were time traveling with the Redux Dev Tools?

gcedo avatar Jan 26 '16 21:01 gcedo

By playing the game. I used the debugger only to show the previous step.

specious avatar Jan 27 '16 06:01 specious