Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    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...
  2. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    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...
  3. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    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,...
  4. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    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...
  5. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    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:...
Results 1 to 5 of 5