Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    That wasn't the step to work on. I don't see that step in the list of steps in post #44.
    Are you adding new steps to that list? If so, please post the new list of steps.

    You need to work on one...
  2. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Which step is the problem?
    Take the first step: What problems do you have?
  3. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Write what? Describe in simple steps what you are trying to write.
  4. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    If you know where the car was located before it was moved, that would be the place that is empty after the car was moved.
  5. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Define the rules for moving a car. If a car is at 3,4 what other locations are legal moves? There are 8 locations immediately adjacent.
    What if the other location is not empty (has a value other...
  6. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Where the program is looking for it to be.
    To see where the program is looking for the file, Create a File object with the same path to the file that is currently being used and print out the value...
  7. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    The Arrays class's deepToString() method is useful for printing out the contents of a 2 dim array for debugging:


    System.out.println("an ID "+ java.util.Arrays.deepToString(theArrayName));

    If...
  8. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Use an assignment statement:

    theArray[theIndex] = value; // change array's contents at index element



    Can you explain what that means?
  9. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Why both?
  10. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    It could take longer to rewrite a GUI app to run in a console. Your choice of course.
  11. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Are you asking how to move the logic from the paintComponent() method to use a println()?

    Sometimes it is easier to start from the beginning than to try to rewrite code that is written for a...
  12. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Look at the assignment, make a list of the features the program needs to do. Make a list of what steps the code needs to take to implement each feature and work on the steps one at a time.

    When...
  13. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Please copy and paste text here, not images.

    Is that all the code for the project?
  14. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    What does that code do? How is it related to the assignment?
  15. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Please copy and paste the code on the forum. Not a link.
    Be sure to wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.
  16. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Post the code and ask questions about the problems you are having.
  17. Thread: Rush hour game

    by Norm
    Replies
    46
    Views
    6,778

    Re: Rush hour game

    Do you have any specific questions about your assignment?
    Please post your code and any questions about problems you are having.

    What have you tried?


    Is this a joke: I need it tonight?
Results 1 to 17 of 17