November 2017
Beginner to intermediate
398 pages
8h 42m
English
When the card is played, it should be removed from the current player hand; follow these steps to do so:
function playCard (card) { if (state.canPlay) { state.canPlay = false currentPlayingCard = card // Remove the card from player hand const index = state.currentPlayer.hand.indexOf(card) state.currentPlayer.hand.splice(index, 1) // Add the card to the discard pile addCardToPile(state.discardPile, card.id) } }
Read now
Unlock full access