From 33a93d58298c3568592c9cd46e4230c593dc90d1 Mon Sep 17 00:00:00 2001 From: Nahid Mondol Date: Wed, 3 Mar 2021 16:49:29 -0500 Subject: [PATCH] Updated War.java --- 94 War/java/War.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/94 War/java/War.java b/94 War/java/War.java index cd66fcc1..b09a4616 100644 --- a/94 War/java/War.java +++ b/94 War/java/War.java @@ -4,9 +4,9 @@ import java.util.Collections; import java.util.Scanner; /** - * Converted FROM BASIC to Java by Nahid Mondol + * Converted FROM BASIC to Java by Nahid Mondol. * - * Based on Trevor Hobsons approach + * Based on Trevor Hobsons approach. */ public class War { @@ -16,7 +16,7 @@ public class War { private static boolean invalidInput; private static Scanner userInput = new Scanner(System.in); - // Simple approach for storing a deck of cards + // Simple approach for storing a deck of cards. // Suit-Value, ex: 2 of Spades = S-2, King of Diamonds = D-K, etc... private static ArrayList deckOfCards = new ArrayList( Arrays.asList("S-2", "H-2", "C-2", "D-2", "S-3", "H-3", "C-3", "D-3", "S-4", "H-4", "C-4", "D-4", "S-5", @@ -64,7 +64,7 @@ public class War { // Ending early will cause a different output to appear. boolean gameEndedEarly = false; - // Shuffle the deck of cards + // Shuffle the deck of cards. Collections.shuffle(deckOfCards); // Since the deck is already suffled, pull each card until the deck is empty or