shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
20 stars 43 forks source link

game engine: handle the case with 0 card in drawCardFromDeck #49

Closed aayush0325 closed 1 month ago

aayush0325 commented 1 month ago

Fixes: #8

Description

handled the edge case in drawCardFromDeck where the deck length was 0 by updating the deck from the thrown cards and calling shuffle on it

Motivation and Context

for better deck handling in our game and to make sure that all use cases are tended to

How to Test

can be tested after shuffle in deck.ts is written

Related Issues

shuffle from deck.ts needs to be written and exported

Checklist

Screenshots (if applicable)

image