vishal2241 / opentestbed

Automatically exported from code.google.com/p/opentestbed
0 stars 0 forks source link

Support 10-player games #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For the moment, if you put 10 player in the simulation, you've got the 
following error in HandHistoryWriter:

java.lang.IllegalStateException: Full-Tilt format only supports 9 players, but 
10 players are seated

I suggest that this message is turned into a warning. You can do it this way in 
HandHistoryWriter:

  private boolean warningDisplayed;

  private void writeInitalGameInfo() {
    ...
    if (gameInfo.isActive(9) && !warningDisplayed) {
      log.warning("Full-Tilt format only supports 9 players, but 10 players are seated");
      warningDisplayed = true; // don't display warning next time
    }

    // Player Seats
    // Seat 1: player1 ($0.33)
    for (int playerId = 0; playerId < gameInfo.getNumPlayers(); playerId++) {
    ...

Another problem is the seat permutation which doesn't work currently for 10 
seats. However, as far as I understand the discussion 
http://pokerai.org/pf3/viewtopic.php?f=3&t=3272, the permutation formula is ok 
for 10. So you just have to enable this in TableSeater:

  private int[][] createSeatPermutations(AbstractGameDescription gameDescription) {
    ...
    if (numSeats == 4 || numSeats == 6 || numSeats == 10) {

Finally, it seems that the MCTS bot doesn't work with 10 seats but I have no 
clue on how to solve this.

Original issue reported on code.google.com by bgran...@gmail.com on 15 Nov 2010 at 3:11

GoogleCodeExporter commented 8 years ago
hum, there is a little issue with my changes. Please replace the code above in 
writeInitialGameInfo by this:

    // Player Seats
    // Seat 1: player1 ($0.33)
    for (int playerId = 0; playerId < gameInfo.getNumSeats(); playerId++) {
      if (gameInfo.isActive(playerId)) {

I know that you can't import the hand history file with 10 seats in Poker 
Tracker 3 for example because of FullTilt format limitation, but I'm working on 
a iPoker hand history writer which solves this. I will submit my changes when 
they are ready.

Original comment by bgran...@gmail.com on 18 Nov 2010 at 9:55