|
state.deal.pile.cards = state.deal.deal.cards; |
As you restart a deal, you flip the bunch of face-up cards altogether, not one by one. So the card that was at the bottom of the face-up pile becomes the top card in the restarted deal.
Right now, the cards are being flipped one by one. Certainly wrong—think how weird it'd be to do this in real life. And it's not how Win98 Solitaire works either.
The fix is easy. Just reverse the deal.deal.cards here before assigning it to deal.pile.cards.
98/programs/js-solitaire/src/index.js
Line 327 in 5245105
As you restart a deal, you flip the bunch of face-up cards altogether, not one by one. So the card that was at the bottom of the face-up pile becomes the top card in the restarted deal.
Right now, the cards are being flipped one by one. Certainly wrong—think how weird it'd be to do this in real life. And it's not how Win98 Solitaire works either.
The fix is easy. Just reverse the
deal.deal.cardshere before assigning it todeal.pile.cards.