Results 1 to 5 of 5
- 12-03-2010, 03:49 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 2
- Rep Power
- 0
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;
}
}
- 12-03-2010, 03:52 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,422
- Blog Entries
- 7
- Rep Power
- 17
What is challenging about it? Any decent programmer can do it for you (see vWorker.com: More capable, accountable and affordable. Guaranteed.)
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-03-2010, 07:30 PM #3
Well, reading that unformatted code ain't exactly easy ...What is challenging about it?
db
- 12-03-2010, 08:02 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,422
- Blog Entries
- 7
- Rep Power
- 17
- 12-03-2010, 10:36 PM #5
Member
- Join Date
- Dec 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Reverse Engineering in Eclipse
By novice in forum New To JavaReplies: 2Last Post: 05-31-2010, 05:17 PM -
challenging error
By diwakardelhi in forum AWT / SwingReplies: 3Last Post: 11-15-2009, 09:43 PM -
Challenging error
By diwakardelhi in forum AWT / SwingReplies: 2Last Post: 11-15-2009, 09:40 PM -
challenging problems
By jayant3001 in forum JCreatorReplies: 24Last Post: 10-30-2008, 05:41 AM -
inverse engineering
By Ed in forum JDBCReplies: 2Last Post: 07-02-2007, 07:57 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks