java.lang.Object
app.chess.board.ChessBoard
- Direct Known Subclasses:
StandardChessBoard
Utility class to simplify chessboard creation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChessPiece[][]
final void
put
(Field field, ChessPieceKind kind, ChessPieceColor color) Create and put a single chess piece on the boardfinal void
put
(String fieldCode, ChessPieceKind kind, ChessPieceColor color)
-
Field Details
-
size
protected int size -
pieces
ChessPiece[][] pieces
-
-
Constructor Details
-
ChessBoard
public ChessBoard(int size)
-
-
Method Details
-
put
Create and put a single chess piece on the board- Parameters:
field
- target positionkind
- kind of piececolor
- black or white
-
put
-
getPieces
-