Example #1
0
  public String drawnTwoCards() {
    SimpleGame game = new SimpleGame(3, 10);
    game.setDrawDeck(deck);
    game.drawCard();
    game.drawCard();

    // third drawn should be done automatically, but it is handled in
    // playSimpleGame method and I cannot access because it expects input from player
    game.drawCard();
    return game.getDisposeDeck().lastCard().getCardText();
  }
Example #2
0
 public String drawnCard() {
   SimpleGame game = new SimpleGame(3, 10);
   game.setDrawDeck(deck);
   //  Card lastDrawnCard = game.drawCard();
   return game.getDisposeDeck().lastCard().getCardText();
 }