|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbot.module.th.shc.StartingHandChart
public abstract class StartingHandChart
This abstract class offers the body for every particular startingHandChart
| Field Summary | |
|---|---|
private int |
numCalls
length depends on differentiation of table style (OFFENSIVE has 6 - max) |
private int |
numRaises
length depends on differentiation of table style (OFFENSIVE has 4 - max) |
private int |
proposal
tables proposal |
protected static int |
rank
1:1 translation: Ace == 14 |
protected static int |
suite
suites start at 0 |
int[][][][][][][] |
table
basic startinghandchart as int array 1-4: card1Value,card1Color,card2Value.card2Color 5: position (in classes: early,mid,late,sb,bb) 6: how often was called in this round 7: how often was raised in this round |
| Constructor Summary | |
|---|---|
StartingHandChart(int numPosition,
int numCalls,
int numRaises)
Constructor table depending table depending length - how much differentiation offers the table? |
|
| Method Summary | |
|---|---|
private int |
getPositionCat(int position,
int activePlayers)
maps the absolute position onto the 5 position categories position categories: early,mid,late,sb,bb - positions start at 0 categories are filled from EARLY to LATE e.g. 7 players: 0->3(SB); 1->4(BB); 2->0(EARLY); 3->0(EARLY); 4->1(MIDDLE); 5->1(MIDDLE); 6->2(LATE); |
int[] |
getProposal(Card[] holeCards,
int activePlayers,
int smallBlind,
int bigBlind,
int position,
int calls,
int raises)
lookInTable and process proposal |
private void |
initAllFold()
init the table with FOLD everywhere |
private int |
lookInTable(Card[] holeCards,
int position,
int calls,
int raises)
looks in the startinghandcharts table for its proposal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int rank
protected static int suite
private int numCalls
private int numRaises
private int proposal
public int[][][][][][][] table
| Constructor Detail |
|---|
public StartingHandChart(int numPosition,
int numCalls,
int numRaises)
numPosition - - usually and here: 5 standard position classes: early,mid,late,sb,bb 0-4numCalls - - amount of previous calls by opponentsnumRaises - - amount of previous calls by opponents| Method Detail |
|---|
public int[] getProposal(Card[] holeCards,
int activePlayers,
int smallBlind,
int bigBlind,
int position,
int calls,
int raises)
IF_StartingHandChart
getProposal in interface IF_StartingHandChartholeCards - - bots handactivePlayers - - amount ofsmallBlind - -bigBlind - -position - Position of the player in this hand
(0: first player behind the button; 1: second player behind the button; ...)calls - - how often was called in this roundraises - - how often was raised in this round
private int getPositionCat(int position,
int activePlayers)
position - absolute position of the player in this hand
(0: first player behind the button; 1: second player behind the button; ...)activePlayers -
PositionInt
private int lookInTable(Card[] holeCards,
int position,
int calls,
int raises)
holeCards - - ownposition - as position class: early,mid,late,sb,bb - positions start at 1calls - - how often was called in this roundraises - - how often was raised in this round
private void initAllFold()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||