From 3cd3ab5f51b8405bcb7db25348e7abe38266fc18 Mon Sep 17 00:00:00 2001 From: di7chro Date: Mon, 27 Apr 2015 16:50:12 +0200 Subject: [PATCH] Fixed up comments --- PokerKata/src/session3/PokerGame.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/PokerKata/src/session3/PokerGame.java b/PokerKata/src/session3/PokerGame.java index d3b6646..afdf76e 100644 --- a/PokerKata/src/session3/PokerGame.java +++ b/PokerKata/src/session3/PokerGame.java @@ -156,10 +156,10 @@ public class PokerGame { } /** - * Extracts all the values from the given String (hand) + * Extracts all the colors from the given String (hand) * * @param hand - * @return The values of all the cards + * @return The colors of all the cards */ private char[] getColors(String hand) { char[] colors = "".toCharArray(); @@ -175,11 +175,10 @@ public class PokerGame { } /** - * Finds a pair by looking if two cards next to each other has the same - * value + * Finds a Flush by looking if all cards has the same colors * * @param hand - * @return true if there is a pair, otherwise false + * @return true if there is a flush, otherwise false */ private boolean findFlush(String hand) { char[] colors = getColors(hand);