War card game: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Added further remarks to the preamble.) |
(→{{header|Wren}}: Further comment.) |
||
Line 102: | 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 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. |
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 |
<lang ecmascript>import "random" for Random |
||
import "/queue" for Deque |
import "/queue" for Deque |