Skip to content

Commit

Permalink
#17 A kód véglegesítése
Browse files Browse the repository at this point in the history
  • Loading branch information
kalacska committed Apr 27, 2015
1 parent 3c96d76 commit 1190ca1
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 650 deletions.

This file was deleted.

20 changes: 0 additions & 20 deletions src/main/java/org/leanpoker/player/CheckConditions.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.leanpoker.player.checkCards.CheckResult;
import org.leanpoker.player.checkCards.HandRank;
import org.leanpoker.player.checkCards.HandChecker;
import org.leanpoker.player.strategies.*;

/**
*
Expand All @@ -34,29 +33,10 @@ public int check() {
afterPreFlop();
}

// Strategy strategy = null;
// switch (gameState.getCommunityCards().size()) {
// case 0:
// strategy = new PreFlopStrategy();
// break;
// case 3:
// strategy = new FlopStrategy();
// break;
// case 4:
// strategy = new TurnStrategy();
// break;
// case 5:
// strategy = new RiverStrategy();
// break;
// }
// if (strategy != null) {
// bet = strategy.calculateBet(gameState);
// }
return bet;
}

private void preFlop() {
//HandChecker handChecker = new HandChecker();
setAllCards();
CheckResult checkResult = new CheckHighCard().getResult(allCards);
if (checkResult == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/leanpoker/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class Player {

static final String VERSION = "Zeusz 1.0";
static final String VERSION = "Zeusz Final";

public static int betRequest(GameState gameState) {
CheckConditions checkConditions = new CheckConditions(gameState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ protected void makeOrderedCardList() {
for (Card card : cards) {
if (card.isEqualRank(highRank1)) {
orderedCardList.add(card);
//cards.remove(card); ez sajnos nem jött be (ConcurrentModificationException)
}
}
cards = Tools.orderCards(cards);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.leanpoker.player.checkCards;

import com.wcs.poker.gamestate.Card;
import java.util.List;
import org.git_egylet.tools.Tools;
import static org.leanpoker.player.checkCards.Check.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.wcs.poker.gamestate.Card;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/leanpoker/player/checkCards/CheckRiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import com.wcs.poker.gamestate.Card;
import com.wcs.poker.gamestate.GameState;
import java.util.ArrayList;
import java.util.List;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.leanpoker.player.checkCards;

import com.wcs.poker.gamestate.Card;
import org.git_egylet.tools.Tools;
import static org.leanpoker.player.checkCards.Check.*;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.wcs.poker.gamestate.Card;
import java.util.Arrays;
import org.git_egylet.tools.Tools;
import static org.leanpoker.player.checkCards.Check.*;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.leanpoker.player.checkCards;

import com.wcs.poker.gamestate.Card;
import com.wcs.poker.gamestate.GameState;
import java.util.Arrays;
import java.util.List;

Expand Down
59 changes: 0 additions & 59 deletions src/main/java/org/leanpoker/player/strategies/FlopStrategy.java

This file was deleted.

59 changes: 0 additions & 59 deletions src/main/java/org/leanpoker/player/strategies/PreFlopStrategy.java

This file was deleted.

59 changes: 0 additions & 59 deletions src/main/java/org/leanpoker/player/strategies/RiverStrategy.java

This file was deleted.

Loading

0 comments on commit 1190ca1

Please sign in to comment.