A few notes:
1) In a constructor, you do not create the Object (with the exception of very specific situations). So, this statement:
Board chessBoard = new Board();
will be in your Main, or...
Type: Posts; User: aussiemcgr
A few notes:
1) In a constructor, you do not create the Object (with the exception of very specific situations). So, this statement:
Board chessBoard = new Board();
will be in your Main, or...
Ok, this statement:
Board(String[] occupied){
indicates you are declaring either a method or a constructor.
QUESTION #1: Is this supposed to be a method or a constructor?
If it is a...
Ok, well I guess I have a question that is important. How is your professor wanting you to indicate a square as "occupied"?
As for that function, or what appears to be an alternative constructor,...
1) Ok, well when you create an array of ints using:
int Board[][] = new int [8][8];
You are saying you are using a two dimensional int array. A two dimensional array is an array that holds...
for( int i = 0; i < 8; i++);
for( int j; j < 8; j++);
Those are issues. See the post I provided here regarding this issue:...