Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default A challenging Engineering Programming problem

    I created a maze inserted in a 2D-Array, and I need a solution of a method called FindS which finds the starting point in the maze and a method called solve to solve the maze whether to go up, down, right , left, using ListStack implementation!!
    solve() needs S --> findnext()
    go up, down, right, left --> stack(S);
    if found--> stack.pop();
    while(!solved && !stack is empty()) --> repeat

    public Pointer FindS( char S)
    {

    }
    public boolean solve()
    {

    }



    This is my pointer class:

    public class Pointer {

    int row, col;
    int x,y;

    public Pointer(int X, int Y, int r, int c ){
    x=X;
    y=Y;
    row=r;
    col=c;


    }
    public void setX(int X)
    {
    x=X;
    }
    public int getX()
    {
    return x;
    }

    public void setY(int Y)
    {
    y=Y;
    }
    public int getY()
    {
    return y;
    }

    public void setrow(int r)
    {
    row=r;
    }
    public int getRow()
    {
    return row;
    }

    public void setCol(int c)
    {
    col=c;
    }
    public int getCol()
    {
    return col;
    }

    }

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,371
    Blog Entries
    7
    Rep Power
    20

    Default

    What is challenging about it? Any decent programmer can do it for you (see vWorker.com: More capable, accountable and affordable. Guaranteed.)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default

    What is challenging about it?
    Well, reading that unformatted code ain't exactly easy ...

    db

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,371
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Darryl.Burke View Post
    Well, reading that unformatted code ain't exactly easy ...
    But it's so much like engineering ;-)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default

    It may be easy for you, but I'm having some issues in solving it, that's why I'm asking for help!

Similar Threads

  1. Reverse Engineering in Eclipse
    By novice in forum New To Java
    Replies: 2
    Last Post: 05-31-2010, 05:17 PM
  2. challenging error
    By diwakardelhi in forum AWT / Swing
    Replies: 3
    Last Post: 11-15-2009, 09:43 PM
  3. Challenging error
    By diwakardelhi in forum AWT / Swing
    Replies: 2
    Last Post: 11-15-2009, 09:40 PM
  4. challenging problems
    By jayant3001 in forum JCreator
    Replies: 24
    Last Post: 10-30-2008, 05:41 AM
  5. inverse engineering
    By Ed in forum JDBC
    Replies: 2
    Last Post: 07-02-2007, 07:57 PM

Posting Permissions

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