Package poker_game

Examples of poker_game.PlayerMove


    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
    PlayerMove move=new PlayerMove();
    move.setPlayerChoose(PlayerMove.Choose.Ante);
    state.setChip(move,0,10);
    int expectedBalance=1060;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    GameOver gameover=state.makeMove(move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance);      
  }
View Full Code Here


    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
    PlayerMove move=new PlayerMove();
    move.setPlayerChoose(PlayerMove.Choose.Ante);
    state.setChip(move,0,10);
    int expectedBalance=1000;
    GameOver.Result expectedTie=GameOver.Result.TIE;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    GameOver gameover=state.makeMove(move);
    assertEquals(gameover.getResult(),expectedTie);
    assertEquals(gameover.getBalance(),expectedBalance);      
  }
View Full Code Here

    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
    PlayerMove move=new PlayerMove();
    move.setPlayerChoose(PlayerMove.Choose.PairsPlusAnte);
    state.setChip(move,10,10);
    int expectedBalance=1010;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    move.setPlayerDecision(PlayerMove.Decision.Deal);
    GameOver gameover=state.makeMove(move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance)
    state.setBalance(gameover.getBalance());
    expectedBalance=1010;
    GameOver.Result expectedTie=GameOver.Result.TIE;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    gameover=state.makeMove(move);
    assertEquals(gameover.getResult(),expectedTie);
    assertEquals(gameover.getBalance(),expectedBalance);
  }
View Full Code Here

TOP

Related Classes of poker_game.PlayerMove

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.