In Meerkat documentation it says that in class PlayerInfo there is a method setBankRoll(double br), which seems to be just what I need. But when I try to use that method in the Java combot, the method is not found. I am not really a Java programmer, so I might be doing something wrong.
This is how I tried to use setBankRoll() in the gameStartEvent of the combot:
Code:
public void gameStartEvent(GameInfo gInfo) {
this.gi = gInfo;
String s = new String("");
s = String.format("01;%d;%4.2f;%d;%d;%d;\n",BotId,gi.getBigBlindSize(),gi.getNumPlayers(),gi.getButtonSeat(),gi.getGameID());
ComSend(s);
for (int seat = 0;seat < 10; seat++) {
if (gi.inGame(seat)) {
s = String.format("02;%d;%d;%s;%4.2f;\n",BotId,seat,gi.getPlayer(seat).getName(),gi.getPlayer(seat).getBankRoll());
PlayerInfo pi = gi.getPlayer(seat);
pi.setBankRoll(100.0); // Can not resolve method!!!
ComSend(s);
}
}
}
How can I set the bankroll for players?Statistics: Posted by Seikez — Sun Jan 26, 2014 12:31 pm
]]>