Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    2,442

    Re: Help with solving Maze

    For testing the logic of solver() I'd hardcode a maze in the program and not use the huge read and verify code.
    Your debug print out could use a lot more data. printing left,right etc doesn't say...
  2. Replies
    9
    Views
    2,442

    Re: Help with solving Maze

    Another suggestion:
    Instead of hardcoding "1" all over the program, define a String variable with a meaningful name and use that variable in the code to make it more readable and to allow the...
  3. Replies
    9
    Views
    2,442

    Re: Help with solving Maze

    I don't think your explanation of the logic is correct.
    I don't see where you change the location to "-"
    I do see where you change a location to an "x"

    Your explanation uses code and not words....
  4. Replies
    9
    Views
    2,442

    Re: Help with solving Maze

    Seems like it could be done in one pass.

    Can you explain your search algorithm?
  5. Replies
    9
    Views
    2,442

    Re: Help with solving Maze

    Why does the code read the file two times?

    Can you explain your search algorithm?

    A suggestion for testing: define the maze in a String:


    String theMaze =...
Results 1 to 5 of 5