Package org.cspoker.server.embedded.gamecontrol

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()


    }
    Game game = gameControl.getGame();

    try {
      gameControl.allIn(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here


    Game game = gameControl.getGame();

    try {
      gameControl.allIn(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

    try {
      gameControl.allIn(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());

      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

      gameControl.allIn(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());

      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

   
    events.add(Events.fold, Events.winner);
    events.ignore();
   
    try {
      gameControl.fold(kenzo);
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

      assertEquals(FinalRound.class, gameControl.getRound().getClass());

      gameControl.bet(cedric, 20);
      gameControl.raise(kenzo, 50);
      gameControl.fold(cedric);

      assertEquals(PreFlopRound.class, gameControl.getRound().getClass());

    } catch (IllegalActionException e) {
      fail(e.getMessage());
View Full Code Here

      gameControl.deal();
    } catch (IllegalActionException e1) {
      fail(e1.toString());
    }
    try {
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
View Full Code Here

    } catch (IllegalActionException e1) {
      fail(e1.toString());
    }
    try {
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }

    assertFalse(gameControl.getRound() instanceof WaitingRound);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.