Package poker_game

Examples of poker_game.Card


 
  @Test
  public void testMakeMoveFold(){
    state.initialize();
    ArrayList<Card> player=new ArrayList<Card>();   
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.JACK);
    Card card6=new Card(Suit.SPADES,Rank.FIVE);
    player.add(card4);
      player.add(card5);
    player.add(card6);   
    state.setPlayerCards(player);
    PlayerMove move=new PlayerMove();
View Full Code Here


  @Test
  public void testMakeMovePlay(){
    state.initialize();
    ArrayList<Card> dealer=new ArrayList<Card>();
    ArrayList<Card> player=new ArrayList<Card>();
    Card card1=new Card(Suit.CLUBS,Rank.TWO);
    Card card2=new Card(Suit.DIAMONDS,Rank.KING);
    Card card3=new Card(Suit.SPADES,Rank.TEN);
    dealer.add(card1);
      dealer.add(card2);
    dealer.add(card3);
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.JACK);
    Card card6=new Card(Suit.HEARTS,Rank.FIVE);
    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
View Full Code Here

 
  @Test
  public void testMakeMoveFoldWithPairsPlus(){
    state.initialize();
    ArrayList<Card> player=new ArrayList<Card>();   
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.JACK);
    Card card6=new Card(Suit.SPADES,Rank.FIVE);
    player.add(card4);
      player.add(card5);
    player.add(card6);   
    state.setPlayerCards(player);
    PlayerMove move=new PlayerMove();
View Full Code Here

  @Test
  public void testMakeMovePlayWithPairsPlus(){
    state.initialize();
    ArrayList<Card> dealer=new ArrayList<Card>();
    ArrayList<Card> player=new ArrayList<Card>();
    Card card1=new Card(Suit.CLUBS,Rank.TWO);
    Card card2=new Card(Suit.DIAMONDS,Rank.KING);
    Card card3=new Card(Suit.SPADES,Rank.TEN);
    dealer.add(card1);
      dealer.add(card2);
    dealer.add(card3);
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.JACK);
    Card card6=new Card(Suit.HEARTS,Rank.FIVE);
    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
View Full Code Here

  @Test
  public void testMakeMovePlayBonusWithDealerUnqualifiy(){
    state.initialize();
    ArrayList<Card> dealer=new ArrayList<Card>();
    ArrayList<Card> player=new ArrayList<Card>();
    Card card1=new Card(Suit.CLUBS,Rank.TWO);
    Card card2=new Card(Suit.DIAMONDS,Rank.NINE);
    Card card3=new Card(Suit.SPADES,Rank.TEN);
    dealer.add(card1);
      dealer.add(card2);
    dealer.add(card3);
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.ACE);
    Card card6=new Card(Suit.HEARTS,Rank.ACE);
    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
View Full Code Here

  @Test
  public void testMakeMovePlayBonusWithDealerQualifiy(){
    state.initialize();
    ArrayList<Card> dealer=new ArrayList<Card>();
    ArrayList<Card> player=new ArrayList<Card>();
    Card card1=new Card(Suit.CLUBS,Rank.TWO);
    Card card2=new Card(Suit.DIAMONDS,Rank.KING);
    Card card3=new Card(Suit.SPADES,Rank.TEN);
    dealer.add(card1);
      dealer.add(card2);
    dealer.add(card3);
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.ACE);
    Card card6=new Card(Suit.HEARTS,Rank.ACE);
    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
View Full Code Here

  @Test
  public void testMakeMovePlayTie(){
    state.initialize();
    ArrayList<Card> dealer=new ArrayList<Card>();
    ArrayList<Card> player=new ArrayList<Card>();
    Card card1=new Card(Suit.CLUBS,Rank.TWO);
    Card card2=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card3=new Card(Suit.SPADES,Rank.TEN);
    dealer.add(card1);
      dealer.add(card2);
    dealer.add(card3);
    Card card4=new Card(Suit.CLUBS,Rank.ACE);
    Card card5=new Card(Suit.DIAMONDS,Rank.TWO);
    Card card6=new Card(Suit.HEARTS,Rank.TEN);
    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
View Full Code Here

  @Test
  public void testMakeMovePlayPairsPlusAnteWithTIE(){
    state.initialize();
    ArrayList<Card> dealer=new ArrayList<Card>();
    ArrayList<Card> player=new ArrayList<Card>();
    Card card1=new Card(Suit.SPADES,Rank.ACE);
    Card card2=new Card(Suit.HEARTS,Rank.ACE);
    Card card3=new Card(Suit.SPADES,Rank.TEN);
    dealer.add(card1);
      dealer.add(card2);
    dealer.add(card3);
    Card card4=new Card(Suit.DIAMONDS,Rank.ACE);
    Card card5=new Card(Suit.CLUBS,Rank.ACE);
    Card card6=new Card(Suit.HEARTS,Rank.TEN);
    player.add(card4);
      player.add(card5);
    player.add(card6);
    state.setDealerCards(dealer);
    state.setPlayerCards(player);
View Full Code Here

TOP

Related Classes of poker_game.Card

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.