War card game: Difference between revisions

Content deleted Content added
imported>Person McGuy
m Added srand((unsigned) time(NULL)); to int main, without it game was always the same.
PureFox (talk | contribs)
m →‎{{header|Wren}}: Minor tidy
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.
<syntaxhighlight lang="ecmascriptwren">import "random" for Random
import "./queue" for Deque
 
var rand = Random.new()