Added header
Program now handles - Pair - Two-pair - Three of a kind - Four of a kind
This commit is contained in:
@@ -1,17 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* PokerGame.java
|
||||||
|
*
|
||||||
|
* Course in Software Craftsmenship @ Högskolan Väst
|
||||||
|
* Poker game kata for testing TDD, Test Driven Development
|
||||||
|
*
|
||||||
|
* 2015-04-27
|
||||||
|
*/
|
||||||
|
|
||||||
package session3;
|
package session3;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
/* SCORES
|
|
||||||
<<<<<<< HEAD
|
|
||||||
* 2 Pair
|
|
||||||
* 3 Three Of A Kind
|
|
||||||
=======
|
|
||||||
* 1 Pair !
|
|
||||||
>>>>>>> origin/master
|
|
||||||
*
|
|
||||||
* S2K3R5H6S7
|
|
||||||
*/
|
|
||||||
public class PokerGame {
|
public class PokerGame {
|
||||||
public int getScore(String hand) {
|
public int getScore(String hand) {
|
||||||
int score = 0;
|
int score = 0;
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
/*
|
||||||
|
* PokerGame.java
|
||||||
|
*
|
||||||
|
* Course in Software Craftsmenship @ Högskolan Väst
|
||||||
|
* Poker game kata for testing TDD, Test Driven Development
|
||||||
|
*
|
||||||
|
* 2015-04-27
|
||||||
|
*/
|
||||||
|
|
||||||
package session3;
|
package session3;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
@@ -5,20 +14,6 @@ import static org.junit.Assert.assertEquals;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class PokerGameTest {
|
public class PokerGameTest {
|
||||||
// FIXME get_color
|
|
||||||
// FIXME get_value
|
|
||||||
// FIXME draw_one_card
|
|
||||||
// FIXME draw_five_cards
|
|
||||||
// FIXME draw_one_hand
|
|
||||||
// FIXME compare_two_hands
|
|
||||||
// FIXME find_highest_score
|
|
||||||
|
|
||||||
// Spader
|
|
||||||
// Hjärter
|
|
||||||
// Ruter
|
|
||||||
// Klöver
|
|
||||||
|
|
||||||
// K
|
|
||||||
PokerGame myGame = new PokerGame();
|
PokerGame myGame = new PokerGame();
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user