From 0aa5bfdbfa67a639fc9bbb0c4dc508a32c6bf698 Mon Sep 17 00:00:00 2001 From: di7chro Date: Mon, 27 Apr 2015 15:04:25 +0200 Subject: [PATCH] Changed name to Full House --- PokerKata/src/session3/PokerGame.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PokerKata/src/session3/PokerGame.java b/PokerKata/src/session3/PokerGame.java index 28decad..249b68e 100644 --- a/PokerKata/src/session3/PokerGame.java +++ b/PokerKata/src/session3/PokerGame.java @@ -21,7 +21,7 @@ public class PokerGame { public int getScore(String hand) { int score = 0; - if (findPrison(hand) == true) + if (findFullHouse(hand) == true) score = 9; else if (findFourOfAKind(hand) == true) score = 7; @@ -119,14 +119,14 @@ public class PokerGame { } /** - * Finds a prison (kåk = prison). We have a prison if the first and last two + * Finds a Full house. We have a Full House if the first and last two * cards are a pair, and the middle card has same value as either of them * (is three of a kind) * * @param hand - * @return true if there is a prison, otherwise false + * @return true if there is a Full House, otherwise false */ - private boolean findPrison(String hand) { + private boolean findFullHouse(String hand) { char[] values = getValues(hand); if (values[0] == values[1] && values[3] == values[4]