File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programming Diversions and the fly likes Sharky malarky Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Sharky malarky" Watch "Sharky malarky" New topic
Author

Sharky malarky

HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Captain Edward Teach wants to plunder every island between Pelican Point and Tuna Bay. Havng lost his boat recently Captain Teach leapt on an enemy vessel. The crew scattered as the notorious captain drew his most feared serpentine blade from it's fitted scabbard...Setting sail from Pelican point he has plotted the following course to each island SW,N,SE,N,NE,NW,SW,SE,S,NW,S and S.


Will he be able to achieve his goal of conquest ?
By what other name was Captain Teach notoriously known ?
[ January 12, 2004: Message edited by: HS Thomas ]
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11313
    
  16

Blackbeard


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
As for the puzzle, it's not making any sense to me. What does
SW,N,SE,N,NE,NW,SW,SE,S,NW,S and S
mean? I know those are compass directions, but how far does he go in each direction? Is that something we're supposed to determine, or no? And thus far I can't see any correletion between the directions stated and any reasonable path to, well, anywhere. Captain Teach seems to have had too much rum.
Also, is there any difference between x and X? And are Pelican Bay and Tuna Point located precisely at the P and T, or are they each at the x adjacent to the P and T?


"I'm not back." - Bill Harding, Twister
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
As for the puzzle, it's not making any sense to me. What does
SW,N,SE,N,NE,NW,SW,SE,S,NW,S and S
mean? I know those are compass directions, but how far does he go in each direction? Is that something we're supposed to determine, or no?

Yes, to the last question. I think it can be shown using these keys / | \
or better still, I'll change the lettering of the islands.
And thus far I can't see any correletion between the directions stated and any reasonable path to, well, anywhere. Captain Teach seems to have had too much rum.
A general direction is enough. Actually N would be straight up , NE,NW 45 degrees left and right of N, S would be straight down, SE,SW 45 degrees left and right of S.I think that would work.
Also, is there any difference between x and X?
x represents a small island and X , a large one. But now that I've changed the lettering x and X are redundant.
And are Pelican Bay and Tuna Point located precisely at the P and T
Yes, precisely so.
[ January 13, 2004: Message edited by: HS Thomas ]
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Captain Edward Teach wants to plunder every island between Pelican Point and Tuna Bay. Havng lost his boat recently Captain Teach leapt on an enemy vessel. The crew scattered as the notorious captain drew his most feared serpentine blade from it's fitted scabbard...Setting sail from Pelican point he has plotted the following course to each island SW,N,SE,N,NE,NW,SW,SE,S,NW,S and S.

Will he be able to achieve his goal of conquest ?

[ March 04, 2004: Message edited by: HS Thomas ]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
This still isn't making sense to me.
Point T appears to have vanished from the map.
Are we to assume that while traveling "straight" in a given direction, it's possible to stop at an isnland lying directly in that path, then keep going in that direction? I.e. we ignore the need to maneuver around the island? Can we assume all islands are smallish things located in the center of their respective sqares, and no not actually block navigation through that square?
For example, starting at P and heading SW we could land at F, correct? But we could also head further SW after that if we wish? (Since there's little apparnet benefit in turning north immediately as per instructions.)
Why does the "course" end in two consecutive S's? If S means we can travel any distance we like to the south, why list it twice? Just keep going. If on the other hand we're obligated to stop at each island along the way, and this requires another S to go south again - well no, there don't seem to be enough other directions listed in the course to account for all the islands we need to visit, considering we need at least one direction per island, and also need to waste a few directions to shift to different tracks at several points in the journey. Which probably means that something in the rules hasn't been understood correctly. Most likely, because it hasn't actually been stated yet.
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
OK, For those apparently visual-spatially challenged , P-g is the first SW course.P-F isn't SW in the scale of this map of islands. It's more SWE imho. May the force be with you...
You have determined one correct fact in the surmising above which answers the original question.

Point T appears to have vanished from the map.
Sorry, for a brief moment it was down as L, but it's definitely T now.
fred : Yes, Cap'n Teach was Blackbeard.
Are we to assume that while traveling "straight" in a given direction, it's possible to stop at an isnland lying directly in that path, then keep going in that direction? I.e. we ignore the need to maneuver around the island?
The objective is to plunder each island. Would Cap'n Teach be able to achieve his objective?
[ January 13, 2004: Message edited by: HS Thomas ]
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
OK, For those apparently visual-spatially challenged

That's the impression I'm getting AW.
But as fred didn't answer that part I suspect the problem may not be stated too well. It seemed simple to me the first time I saw it. Hope the previous post helps.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
UBB doesn't use monospace fonts reliably. Try viewing this page in Mozilla, then in IE or Opera. The problem is UBB's HTML isn't correctly formed (paragraphs inside font tags, I think) and different browsers reconcile the malformed tags differently. So, eyeballing the map in your browser is not reliable. Instead, I simply copied the text to a text editor. Where it's quit obvious that F is two left and two down from P, which seems pretty SW to me, compensating for the fact that character blocks are displayed taller than they are wide. Perhaps this compensation is an unwarranted assumption, but given the variance in browser displays, there's no other way to reliably determine what you mean by SW. And at this point it's really not worth further guessing; info so far is way too vague. Puzzles can be fun; extracting meaning from random vagueness, not so much. Try posting a GIF of the intended map, or a list of coordinates, or something, well, meaningful.
[ January 13, 2004: Message edited by: Jim Yingst ]
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Humph! :roll:
[ January 14, 2004: Message edited by: HS Thomas ]
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11313
    
  16

haven't put much thought into this (work, class, wife, etc) but one thing that sticks out is this...
there are a total of 14 islands, including P and T. this require 13 hops. but the list of directions only has 12. so, unless you can go, say, SE and hit two islands, it's impossible.
if you can hit more than one island on a single compass direction, are you allowed to re-visit an island? i assume you can cross a path...
i'd then start working from both ends. the last two directions are S and S, so he had to come from the two islands straight above T.
Since the first move is SW, there are two choices, but the second move is N, and one of the two choices for the first move does not HAVE an island N.
that's about all i have time for now, but i'll play with it more later, unless someone posts a solution.
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Originally posted by fred rosenberger:
[QB] so, unless you can go, say, SE and hit two islands, it's impossible.
if you can hit more than one island on a single compass direction, are you allowed to re-visit an island? i assume you can cross a path...
[QB]

No, you can't revisit an island.
The diagram must be really bad.
But to give you both your dues, the directions miss an island. Which one ?
The compass may help. I'm still working on putting the map on a grid.
[ January 14, 2004: Message edited by: HS Thomas ]
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

He misses "H".
He visits, in order, P, g, E, J, f ,d, A, B, c, M, I, K and finally T
This seemed straight-forward enough. about all the confusion....
[ January 14, 2004: Message edited by: Joel McNary ]

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
He misses "H".
So in other words, the answer to the original question is "no". Gee, that was exciting. As Fred observed, we could determine that answer without a map - if only we'd had a clear statement earlier that you couldn't hit two islands in one leg of the trip.
This seemed straight-forward enough.
Yes, it's pretty easy to find a path that fails to meet the original goals.
Perhaps we are to think that H is not "between" P and T. (Yet A is?)
about all the confusion....
Aside from failing to hit H, as I noted, the map looks a bit different in different browsers. The compass graphic wasn't there initially either. Based on the compass, it seems that I should ignore the Mozilla view, and stick with Opera or the Evil Empire. Well in that case, we can say P-g is southwest, fine. But looking at the rest of the path:
E-J is E of SE
A-B is W of SW
B-c is E of SE (badly)
M-I iw W of NW (badly)
The last is worst, I think. Going NW from M gets you to g, not I. Unless of course it looks different on your browser. :roll: But really, given the amount of rule-bending that needs to be done to reach a "solution" that doesn't even satisfy the original goal, I'd say the best answer to "Will he be able to achieve his goal of conquest?" is "No, because his map sucks."
[ January 14, 2004: Message edited by: Jim Yingst ]
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
OK, we'd just have to go with that the map doesn't show up the same in different browsers.
This may get everyone's goat.
drew his most feared serpentine blade from it's fitted scabbard.
And how ? I fear Captain Teach was overwhelmed and thrown overboard while trying to yank the serpentine blade from the scabbard.
That's the real reason he wasn't able to plunder any islands.
Nice work everyone. Not too sneaky I hope and shame about the ruined map !
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Sharky malarky