|
|
Register •
FAQ
• Search • Login
|
Breadth First Searchs (Anticipation Scripts)
| Author |
Message |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: Breadth First Searchs (Anticipation Scripts)
Hehe. That's what happens when you're used to coding in one language and have to make a quick trip to another. I always get php, C and twxproxy syntax confused. "Hrm, is it =, or ==? is it != or <>? erg..."
Anyway. You don't need to write an entire BFS like that now. You can use getNearestWarps instead.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Sun Jun 28, 2009 1:04 am |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: Breadth First Searchs (Anticipation Scripts)
Singularity wrote: Hehe. That's what happens when you're used to coding in one language and have to make a quick trip to another. I always get php, C and twxproxy syntax confused. "Hrm, is it =, or ==? is it != or <>? erg..."
Anyway. You don't need to write an entire BFS like that now. You can use getNearestWarps instead. Yes, I could understand... And thank you Sing, I did find there is no need for ALL that with getNearestWarps..you da man!
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Sun Jun 28, 2009 6:23 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: Breadth First Searchs (Anticipation Scripts)
Haha, I was just seeing if anyone was paying attention... clearly.
This is probably the most clearly illustrated BFS I've written. I think its about as easy to follow as a BFS can be. I'm glad it was helpful. And there will always be occassions to roll your own BFS, but getNearestWarps can greatly simplify the code when it is applicable.
Props on catching the typo. I bet you understand it better after having debugged it.
+EP+
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Mon Jun 29, 2009 12:20 am |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: Breadth First Searchs (Anticipation Scripts)
ElderProphet wrote: Haha, I was just seeing if anyone was paying attention... clearly. Of course, thats CLEARLY what you were doing...  Yes it was a great example, and after tinkering and playing with it to understand it better (freezing TWX 3 times after throwing it into an infinite loop) I got what I needed from it. So thanks again Sing, Ep, and LS!
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Mon Jun 29, 2009 6:10 am |
|
 |
|
Kaus
Gameop
Joined: Tue Nov 19, 2002 3:00 am Posts: 1050 Location: USA
|
 Re: Breadth First Searchs (Anticipation Scripts)
mob wrote: ElderProphet wrote: Haha, I was just seeing if anyone was paying attention... clearly. Of course, thats CLEARLY what you were doing...  Yes it was a great example, and after tinkering and playing with it to understand it better (freezing TWX 3 times after throwing it into an infinite loop) I got what I needed from it. So thanks again Sing, Ep, and LS! Getnearestwarps is a wonderful thing.
_________________ Dark Dominion TWGS Telnet://twgs.darkworlds.org:23 ICQ#31380757, -=English 101 pwns me=- "This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."
|
| Tue Jun 30, 2009 7:46 pm |
|
 |
|
Who is online |
Users browsing this forum: No registered users and 34 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|