War card game: Difference between revisions

m
Added srand((unsigned) time(NULL)); to int main, without it game was always the same.
m (see Raku for history)
imported>Person McGuy
m (Added srand((unsigned) time(NULL)); to int main, without it game was always the same.)
Line 490:
int main() {
war_game wargame;
srand((unsigned) time(NULL));
 
while ( ! wargame.game_over() ) {
wargame.next_turn();
Anonymous user