shuffleDeck() {
        this.cards = [...this.cards, ...this.burnPile];
        this.burnPile = [];
        for (let i = this.cards.length - 1; i > 0; i -= 1) {
            const newPosition = Math.floor(Math.random() * (i + 1));
            const tempItem = this.cards[i];
            this.cards[i] = this.cards[newPosition];
            this.cards[newPosition] = tempItem;
        }
    }
/**
     * Shuffle the cards, will shuffle the burn pile back into the deck
     */
Shuffle the cards, will shuffle the burn pile back into the deck
Shuffle the cards will shuffle the burn pile back into the deck
shuffleDeck() {
        this.cards = [...this.cards, ...this.burnPile];
        this.burnPile = [];
        for (let i = this.cards.length - 1; i > 0; i -= 1) {
            const newPosition = Math.floor(Math.random() * (i + 1));
            const tempItem = this.cards[i];
            this.cards[i] = this.cards[newPosition];
            this.cards[newPosition] = tempItem;
        }
    }
shuffleDeck ( ) { this . cards = [ ... this . cards , ... this . burnPile ] ; this . burnPile = [ ] ; for ( let i = this . cards . length - 1 ; i > 0 ; i -= 1 ) { const newPosition = Math . floor ( Math . random ( ) * ( i + 1 ) ) ; const tempItem = this . cards [ i ] ; this . cards [ i ] = this . cards [ newPosition ] ; this . cards [ newPosition ] = tempItem ; } }
Shuffle the cards, will shuffle the burn pile back into the deck
Shuffle the cards will shuffle the burn pile back into the deck