shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
19 stars 42 forks source link

CardDrawingLogic #32

Closed asmit27rai closed 4 months ago

asmit27rai commented 4 months ago

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)

Repo_2(i)

kuv2707 commented 4 months ago

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