Jump to content

War card game: Difference between revisions

m
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:
 
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()
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.