Question: #JAVA Create a new class titled ChessBoard that contains - A private multi-dimensional array of containing the squares of the chess board Getter and Setter
#JAVA
Create a new class titled ChessBoard that contains
- A private multi-dimensional array of containing the squares of the chess board
Getter and Setter methods for putting a chess piece into that array (yes, similar to the ones in ChessPiece.)
- Include in the Setter methods some basic collision detection. Specifically, do NOT allow a2 piece to occupy a square. This will form the basis for our game "rules" later on.
Create a new application titled setupChessBoard that contains your main statement.
- Populate the ChessBoard with your ChessPiece elements
- Print out the current location of your ChessPieces on your board... a simple list is fine.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
