Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    String[] occupied
    This defines an array of String. I think your instructor said that the args passed to the program into the main method's String[] args would be what you pass directly to the...
  2. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    A comment on your code - Don't use the same name for different objects:
    public class Board
    int Board[][] = new int [8][8];


    Where is the occupied method?


    Look at the discussion above about...
  3. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    Sorry, I can't see the text of the error message from here so I can't tell you what is wrong.
  4. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    How do you locate a square and indicate that it is occupied?
    In a 2 dim board, a location would be row and column. Did "he" say you are to pass the args passed to the program to the Board...
  5. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    What is the definition of the occupied array? What does it contain and what is it used for by the Board class constructor.
  6. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    The main method for a java program has the arguments: main(String[] args)
    When you start the execution of the program, you put the arguments on the command line following the name of the class....
  7. Replies
    23
    Views
    9,722

    Re: Simple Chess program

    Do you have some specific questions yet about the assignment?
Results 1 to 7 of 7