Package org.cspoker.common.elements.table

Examples of org.cspoker.common.elements.table.TableConfiguration


    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),4);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),9);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here


      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),18);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),100);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),4);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),100);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

  public void visitNewDealState(NewDealState newDealState) {
    lastDeal = newDealState;
    actionId = 0;
    ++gameId;
    gameSession();
    TableConfiguration tableConfiguration = newDealState
        .getTableConfiguration();
    gameStakes(tableConfiguration);
    Set<PlayerState> players = newDealState.getAllSeatedPlayers();
    for (PlayerState player : players) {
      gamePlayerSeat(player);
View Full Code Here

      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 200),200);
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 200),200);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
View Full Code Here

    }
  }

  public void testTwoPlayersDealerChecksCase(){

    TableConfiguration configuration = new TableConfiguration();
    table = new ServerTable(configuration);
    PlayingTableState gameControl;
    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("kenzo", 100), 50);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("cedric", 100), 50);
View Full Code Here

    }
  }

  public void testTwoPlayersNormalCase(){

    TableConfiguration configuration = new TableConfiguration();
    table = new ServerTable(configuration);
    PlayingTableState gameControl;
    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("cedric", 100), 100);
View Full Code Here

      fail(e.getMessage());
    }
  }

  public void testTwoPlayersDealerRaisesCase(){
    TableConfiguration configuration = new TableConfiguration();
    table = new ServerTable(configuration);
    PlayingTableState gameControl;
    try {
      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("cedric", 100), 100);
View Full Code Here

  public void testTwoPlayersDealerSwitch() {
    MutableSeatedPlayer craig = null;
    try {
      guy = new MutableSeatedPlayer(factory.createNewPlayer("Guy", 100),100);
      craig = new MutableSeatedPlayer(factory.createNewPlayer("Craig", 100),100);
      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(guy);
      table.addPlayer(craig);
    } catch (IllegalValueException e) {
      fail(e.getMessage());
View Full Code Here

    try {

      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 500), 500);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 500),500);
     
      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
    } catch (IllegalValueException e) {
      fail(e.getMessage());
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.table.TableConfiguration

Copyright © 2018 www.massapicom. 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.