private static StringBuilder printBoardBuilder(Board currentBoard, int sizeOfLongestSerie) { StringBuilder tempStr = new StringBuilder(); tempStr.append("Board: ").append(Utils.Constants.END_LINE); tempStr.append(printIndexLineBuilderForBoard(sizeOfLongestSerie)); tempStr.append(currentBoard.toString()); return tempStr; }
public static void printGameScreen( Player currentPlayer, Board currentBoard, ArrayList<Player> players) /**/ { StringBuilder gameScreen = new StringBuilder(); int sizeOfLongestSerie = currentBoard.getSizeOfLongestSerie(); gameScreen.append(Utils.Constants.END_LINE); gameScreen .append("current player is: ") .append(currentPlayer.getName()) .append(System.getProperty("line.separator")); gameScreen.append(printHandBuilder(currentPlayer)); gameScreen.append(printBoardBuilder(currentBoard, sizeOfLongestSerie)); gameScreen.append(printRivalsBuilder(players)); gameScreen.append(printSeperateLineBuilder(sizeOfLongestSerie)); showUser(gameScreen.toString()); }