package com.skraylabs.poker.model;

/**
 * The state of a Texas Hold 'Em Poker game.
 */
public class GameState {

  /**
   * The "board". Community cards.
   */
  private Board board;

  /**
   * Pocket cards. Player cards. There is a maximum of 10 players.
   */
  private Pocket[] pockets = new Pocket[10];

  /**
   * Default constructor.
   */
  GameState() {
  }

  /**
   * Accessor: get the board cards.
   *
   * @return community cards
   */
  public Board getBoard() {
    return board;
  }

  /**
   * Modifier: set the board cards.
   *
   * @param board community cards to set
   */
  void setBoard(Board board) {
    this.board = board;
  }

  /**
   * Accessor: get pocket cards.
   *
   * @return player cards
   */
  public Pocket[] getPockets() {
    return pockets;
  }

  /**
   * Modifier: set pocket cards.
   *
   * @param pockets player cards to set
   */
  void setPockets(Pocket[] pockets) {
    this.pockets = pockets;
  }
}

@@ -388,16 +388,26 @@
 or: get 
+a copy of 
 the boar
@@ -407,32 +407,32 @@
 he board cards.%0A
-
    *%0A   * @retur
@@ -491,20 +491,120 @@
     
-return board
+Board result = null;%0A    if (this.board != null) %7B%0A      result = new Board(this.board);%0A    %7D%0A    return result
 ;%0A  

refactor getBoard() to return a copy.