Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 5th, 2004, 11:41 AM
BillyBob BillyBob is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 BillyBob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Recursive Maze

I don't know if anybody here can help but this problem is making me go insane. Here's what I have to do:

Write a recursive program that finds ALL LEGAL PATHS whose cost is <= to X(command line argument). Read from a file, output good points of the maze into a file, etc. Here is a sample maze file

3 3 <~~~~ 3 x 3 maze
0 1 1
0 0 0
1 0 0

0's are paths, 1's are walls. As you can see that maze has 2 correct paths. I can get my program to find one good path, but not all paths. I also can't figure out how to tell if it hits a wall or the edge of the maze. Any help would be appreciated, once I'm done with this I have to do an iterative maze solver, doesn't that sound like fun too?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Recursive Maze


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway