package com.skraylabs.poker.model;

/**
 * Pair of face-down cards held by each player in a game of Texas Hold 'Em poker.
 */
public class Pocket {
  /**
   * First of two pocket cards.
   */
  public Card card1;
  /**
   * Second of two pocket cards.
   */
  public Card card2;

  /**
   * Default constructor.
   */
  public Pocket() {
    this(null, null);
  }

  /**
   * Initializing constructor
   *
   * @param card1 first of two cards
   * @param card2 second of two cards
   */
  public Pocket(Card card1, Card card2) {
    this.card1 = card1;
    this.card2 = card2;
  }

  /**
   * Copy constructor.
   *
   * @param pocket non-null instance from which to copy attributes.
   */
  public Pocket(Pocket pocket) {
    // TODO: implement me!
  }
} // end of class Pocket
@@ -746,16 +746,908 @@
  me!%0A  %7D
+%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    boolean result = false;%0A    if (o instanceof Pocket) %7B%0A      Pocket thatPocket = (Pocket) o;%0A      // Compare card1 values%0A      boolean card1Equals = false;%0A      if (this.card1 != null) %7B%0A        card1Equals = this.card1.equals(thatPocket.card1);%0A      %7D else %7B%0A        // this.card1 is null%0A        if (thatPocket.card1 == null) %7B%0A          card1Equals = true;%0A        %7D else %7B%0A          card1Equals = false;%0A        %7D%0A      %7D%0A      // Compare card2 values%0A      boolean card2Equals = false;%0A      if (this.card2 != null) %7B%0A        card2Equals = this.card2.equals(thatPocket.card2);%0A      %7D else %7B%0A        // this.card2 is null%0A        if (thatPocket.card2 == null) %7B%0A          card2Equals = true;%0A        %7D else %7B%0A          card2Equals = false;%0A        %7D%0A      %7D%0A      result = card1Equals && card2Equals;%0A    %7D%0A    return result;%0A  %7D
 %0A%7D // en

Implement Pocket.equals().