War card game: Difference between revisions

→‎{{header|Wren}}: Added further remarks to the preamble.
(Added Wren)
(→‎{{header|Wren}}: Added further remarks to the preamble.)
Line 100:
=={{header|Wren}}==
{{libheader|Wren-queue}}
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 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,482

edits