Welcome to the card game, war. What is your name: Olivia Olivia's card: 2 of Clubs Computer's card: 7 of Clubs Computer won that round. And won the following cards: 2 of Clubs, 7 of Clubs, Olivia has 25 cards and Computer has 27 cards. Press enter to continue. Olivia's card: 5 of Diamonds Computer's card: 5 of Clubs Currently a tie. Dealing out the war. Olivia's card: 4 of Spades Computer's card: Ace of Clubs Computer won that round. And won the following cards: 5 of Diamonds, 5 of Clubs, 4 of Diamonds, King of Clubs, 9 of Diamonds, 10 of Clubs, Queen of Hearts, 8 of Diamonds, 4 of Spades, Ace of Clubs, Olivia has 20 cards and Computer has 32 cards. Press enter to continue. Olivia's card: King of Spades Computer's card: 3 of Diamonds Olivia won that round. And won the following cards: King of Spades, 3 of Diamonds, Olivia has 21 cards and Computer has 31 cards. Press enter to continue. // lots of output omitted // example of a double war Olivia's card: 8 of Diamonds Computer's card: 8 of Clubs Currently a tie. Dealing out the war. Olivia's card: King of Diamonds Computer's card: King of Hearts Currently a tie. Dealing out the war. Olivia's card: 3 of Clubs Computer's card: 2 of Spades Olivia won that round. And won the following cards: 8 of Diamonds, 8 of Clubs, Jack of Hearts, 3 of Spades, 2 of Clubs, 6 of Spades, 6 of Hearts, Ace of Clubs, King of Diamonds, King of Hearts, Jack of Diamonds, Queen of Diamonds, 7 of Clubs, 8 of Hearts, Jack of Clubs, 6 of Clubs, 3 of Clubs, 2 of Spades, Olivia has 30 cards and Computer has 22 cards. Press enter to continue. // lots of output omitted // end of game Olivia's card: 7 of Clubs Computer's card: 7 of Diamonds Currently a tie. Dealing out the war. Olivia's card: Jack of Diamonds Computer's card: 2 of Clubs Olivia won that round. And won the following cards: 7 of Clubs, 7 of Diamonds, 10 of Spades, Ace of Clubs, King of Diamonds, 2 of Spades, 10 of Clubs, 3 of Clubs, Jack of Diamonds, 2 of Clubs, Olivia has 47 cards and Computer has 5 cards. Press enter to continue. Olivia's card: Jack of Spades Computer's card: 9 of Clubs Olivia won that round. And won the following cards: Jack of Spades, 9 of Clubs, Olivia has 48 cards and Computer has 4 cards. Press enter to continue. Olivia's card: Queen of Clubs Computer's card: Queen of Spades The computer player cannot complete the war. Olivia is the winner. Olivia has 52 cards and Computer has 0 cards. Press enter to continue. Olivia is the winner! Thanks for playing.