Package org.cspoker.server.embedded.elements.table

Examples of org.cspoker.server.embedded.elements.table.ServerTable


      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 100), 100);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 100),100);
      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) {
      fail(e.getMessage());
View Full Code Here


      kenzo = new MutableSeatedPlayer(factory.createNewPlayer("Kenzo", 200), 200);
      cedric = new MutableSeatedPlayer(factory.createNewPlayer("Cedric", 220),220);
      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),9);

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
      table.addPlayer(guy);
    } catch (IllegalValueException e) {
      fail(e.getMessage());
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) {
      fail(e.getMessage());
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) {
      fail(e.getMessage());
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) {
      fail(e.getMessage());
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);
      table.addPlayer(kenzo);
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);
      table.addPlayer(kenzo);
View Full Code Here

    }
  }

  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);
      table.addPlayer(kenzo);
View Full Code Here

 
  private ServerTable serverTable;
 
  public WaitingTableState(PokerTable table) {
    super(table);
    serverTable = new ServerTable(table.getTableConfiguration());
  }
View Full Code Here

TOP

Related Classes of org.cspoker.server.embedded.elements.table.ServerTable

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.