War card game: Difference between revisions

Content added Content deleted
imported>Person McGuy
m (Added srand((unsigned) time(NULL)); to int main, without it game was always the same.)
m (→‎{{header|Wren}}: Minor tidy)
Line 1,785: Line 1,785:


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.
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.
<syntaxhighlight lang="ecmascript">import "random" for Random
<syntaxhighlight lang="wren">import "random" for Random
import "/queue" for Deque
import "./queue" for Deque


var rand = Random.new()
var rand = Random.new()