I Checked for the situation using if statement is card empty if yes then assign a variable to last thrown card and pop it from thrown cards array and put whole thrown card array to cardDeck and thrown card array get only value as last thrown array and at last shuffle cardeDeck using shuffle function import from desk.ts.
Motivation and Context
To Deal With Situation When CardDeck Is Empty
Checklist
[x] I have tested these changes locally.
[x] I have reviewed the code and ensured it follows the project's coding guidelines.
[ ] I have updated the documentation, if necessary.
[ ] I have assigned reviewers to this pull request.
Deal With Empty Card Situation
Description
I Checked for the situation using if statement is card empty if yes then assign a variable to last thrown card and pop it from thrown cards array and put whole thrown card array to cardDeck and thrown card array get only value as last thrown array and at last shuffle cardeDeck using shuffle function import from desk.ts.
Motivation and Context
To Deal With Situation When CardDeck Is Empty
Checklist
Screenshots (if applicable)