Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CardDrawingLogic #32

Closed

Conversation

asmit27rai
Copy link
Contributor

@asmit27rai asmit27rai commented May 31, 2024

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

  • I have tested these changes locally.
  • 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.

Screenshots (if applicable)

Repo_2(i)

… 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
@kuv2707
Copy link
Collaborator

kuv2707 commented Jun 1, 2024

@asmit27rai Please improve the commit message. Refer to conventions.md for the format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants