War card game: Difference between revisions

→‎{{header|Wren}}: Further comment.
(→‎{{header|Wren}}: Added further remarks to the preamble.)
(→‎{{header|Wren}}: Further comment.)
Line 102:
I've assumed that if a player runs out of cards during a 'war', then the other player automatically wins the game. The Bicycle card company's rules don't appear to cover this eventuality
 
I've also assumed that if a player wins a round, his/her own cards (in the order played) are added back to the bottom of his/her hand before the other player's cards.
<lang ecmascript>import "random" for Random
import "/queue" for Deque
9,476

edits