Package org.cspoker.common.elements.player

Examples of org.cspoker.common.elements.player.MutableSeatedPlayer


  }

  public void testOnlyOneAllInPlayer2() {
    try {

      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);
View Full Code Here


    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);
      table.addPlayer(cedric);
      gameControl = new PlayingTableState(pokerTable, table, kenzo);
     
      events.ignore(); //TODO
View Full Code Here

    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);
      table.addPlayer(cedric);
      gameControl = new PlayingTableState(pokerTable, table, kenzo);
     
      events.ignore(); //TODO
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);
      table.addPlayer(cedric);
      gameControl = new PlayingTableState(pokerTable, table, kenzo);
     
      events.ignore(); //TODO
View Full Code Here

  /*
   * Test that the dealer gets to act first on the first round in a heads up
   * game
   */
  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) {
View Full Code Here

  }
 
  public void testTwoPlayersPreflopRoundFold() {
    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);
View Full Code Here

 

  public void testTwoPlayersFinalRoundFold() {
    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);
View Full Code Here

   *
   */
  public void testTwoPlayersSmallBlindAllInCase(){
    try {

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

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
View Full Code Here

  }

  public void testTwoPlayersSmallBlindRaises() {
    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);
View Full Code Here

   *
   */
  public void testTwoPlayersBigBlindAllInCase1(){
    try {

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

      TableConfiguration configuration = new TableConfiguration();
      table = new ServerTable(configuration);
      table.addPlayer(kenzo);
      table.addPlayer(cedric);
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.player.MutableSeatedPlayer

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.