-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend:engine.js-Check before Drawing card
Fixed the card drawing logic which would also manage moving thrown cards to deck Before drawing the card we check that that deck has sufficient card , if not we move thrown cards back to the deck otherwise we draw a card and push into the cards of the current player Fixes:#8
- Loading branch information
Abhishek
committed
Jun 2, 2024
1 parent
f05595c
commit 210a58e
Showing
1 changed file
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters