Results 1 to 2 of 2

Thread: Maze reader

  1. #1
    bix
    bix is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Default Maze reader

    So I have to create an application that reads a maze from a txt file, that is given to you by the user. The requirements are

    # Ask the user for the name of a file that contains the maze description.
    # Read the maze description from the file.
    # Compute the shortest path (any shortest path) through the maze.
    Then you have to dislpay certain info to the user.


    The row and column number of the start poin in the maze
    * The row and column number of the end point in the maze.
    * The number of steps in the shortest path in the maze.
    * The exact steps required to move from the start point to the end point (along a shortest path)

    the text files contain something that look like this like this
    the first two numbers containing the number of columns and number of rows
    the 0 are the cells that can't be moved through and S means the start
    - means the empty cell which you can move through and E means the end of maze


    2 4
    00
    S-
    0-
    0E

    not really sure where to start so any help would be awesome!!!

  2. #2
    sirdori is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default

    i imagine this is a uni assignment. Just break it down and do it one step at a time. Look up how to parse a txt file, read it into your program into some apropraite form of representation, and then employ some sort of search algorithm, like A(*) for example, then present your findings to the user!:D

Similar Threads

  1. 3D Maze
    By EternalSolitude in forum New To Java
    Replies: 5
    Last Post: 11-14-2008, 12:51 AM
  2. Help me with create a 2D Maze in Java
    By hnam31190 in forum New To Java
    Replies: 4
    Last Post: 11-02-2008, 01:37 AM
  3. Java Maze Problem
    By mousey182 in forum New To Java
    Replies: 2
    Last Post: 03-28-2008, 06:29 PM
  4. Maze Help
    By Soda in forum Advanced Java
    Replies: 1
    Last Post: 12-22-2007, 03:26 AM
  5. maze problem (file to a 2d array)
    By rnavarro9 in forum New To Java
    Replies: 4
    Last Post: 11-09-2007, 07:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •