类 ChessBoardDisplayer

java.lang.Object
me.magicall.game.sub.chess.util.ChessBoardDisplayer

public class ChessBoardDisplayer extends Object
  • 字段详细资料

    • INSTANCE

      public static final ChessBoardDisplayer INSTANCE
    • NEW_LINE

      public static final String NEW_LINE
    • SPACE

      public static final char SPACE
      另请参阅:
    • VERTICAL_LINE

      public static final char VERTICAL_LINE
      另请参阅:
    • HORIZONAL_LINE

      public static final char HORIZONAL_LINE
      另请参阅:
    • LEFT_HEAD

      public static final char LEFT_HEAD
      另请参阅:
    • RIGHT_HEAD

      public static final char RIGHT_HEAD
      另请参阅:
    • LEFT_BOTTOM

      public static final char LEFT_BOTTOM
      另请参阅:
    • RIGHT_BOTTOM

      public static final char RIGHT_BOTTOM
      另请参阅:
    • HEAD_CROSS

      public static final char HEAD_CROSS
      另请参阅:
    • LEFT_CROSS

      public static final char LEFT_CROSS
      另请参阅:
    • RIGHT_CROSS

      public static final char RIGHT_CROSS
      另请参阅:
    • BOTTOM_CROSS

      public static final char BOTTOM_CROSS
      另请参阅:
    • MIDDLE_CROSS

      public static final char MIDDLE_CROSS
      另请参阅:
  • 构造器详细资料

    • ChessBoardDisplayer

      public ChessBoardDisplayer()
  • 方法详细资料

    • toString

      public String toString(ChessBoard board)
    • toString

      public String toString(char[]... charSquare)
    • toStringBuilder

      public StringBuilder toStringBuilder(char[]... charSquare)
    • toCharSquare

      public char[][] toCharSquare(ChessBoard board)
    • getMaxRowIndex

      protected int getMaxRowIndex(ChessBoard board)
    • getMaxColumnIndex

      protected int getMaxColumnIndex(ChessBoard board)
    • getRowCount

      protected int getRowCount(ChessBoard board)
    • getColumnCount

      protected int getColumnCount(ChessBoard board)
    • charOfPosition

      protected char charOfPosition(ChessBoard board, int rowIndex, int columnIndex)
    • getSpaceChar

      protected char getSpaceChar(ChessBoard board, int rowIndex, int columnIndex)
    • getVerticalLineChar

      protected char getVerticalLineChar(ChessBoard board, int rowIndex, int columnIndex)
    • getMiddleCrossChar

      protected char getMiddleCrossChar(ChessBoard board, int rowIndex, int columnIndex)
    • getRightCrossChar

      protected char getRightCrossChar(ChessBoard board, int rowIndex, int columnIndex)
    • getLeftCrossChar

      protected char getLeftCrossChar(ChessBoard board, int rowIndex, int columnIndex)
    • getBottomCrossChar

      protected char getBottomCrossChar(ChessBoard board, int rowIndex, int columnIndex)
    • getRightBottomChar

      protected char getRightBottomChar(ChessBoard board, int rowIndex, int columnIndex)
    • getLeftBottomChar

      protected char getLeftBottomChar(ChessBoard board, int rowIndex, int columnIndex)
    • getHorizonalLineChar

      protected char getHorizonalLineChar(ChessBoard board, int rowIndex, int columnIndex)
    • getHeadCrossChar

      protected char getHeadCrossChar(ChessBoard board, int rowIndex, int columnIndex)
    • getRightHeadChar

      protected char getRightHeadChar(ChessBoard board, int rowIndex, int columnIndex)
    • getLeftHeadChar

      protected char getLeftHeadChar(ChessBoard board, int rowIndex, int columnIndex)
    • isColumnIndexInCross

      protected boolean isColumnIndexInCross(ChessBoard board, int columnIndex)
    • isRowIndexInCross

      protected boolean isRowIndexInCross(ChessBoard board, int rowIndex)