import java.util.ArrayList;

public class Seat {
  private Player          player;
  private int             bet;
  private ArrayList<Card> pocket;

	public Seat () {
    player = null;
    bet    = 0;
    pocket = new ArrayList<>();
	}

  public void placeBet () {
    this.bet = this.player.getBet ();
  }

  public int getPocketCount () {
    int total = 0;

    // add all cards except aces
    for (Card card : pocket) {
      if (card.getFace() != "Ace") {
        total += card.getFaceValue();
      }
    }

    // add aces
    for (Card card : pocket) {
      if (card.getFace() == "Ace") {
        if (total + card.getFaceValue() >= 21) {
          total += 1;
        } else {
          total += 11;
        }
      }
    }

    return total;
  }

  public void addPlayer (Player player) {
    this.player = player;
  }
  public Player getPlayer () {
    return player;
  }
  public void removePlayer () {
    this.player = null;
  }

  public void setBet (int bet) {
    this.bet = bet;
  }
  public int getBet () {
    return this.bet;
  }

  public ArrayList<Card> getPocket () {
    return pocket;
  }

  public void addCard (Card card) {
    pocket.add (card);
  }

  public String toString () {
    String output = "Bet: " + bet + "\n";

    output += "Pocket count: " + getPocketCount() + "\n";

    for (Card card : pocket) {
      output += card  + "\n";
    }

    return output;
  }
}
@@ -634,17 +634,16 @@
 alue() %3E
-=
  21) %7B%0A 

fix bug where if you get blackjack you asked for another card never being able to actually get blackjack