Jump to content
BrainDen.com - Brain Teasers

phil1882

Members
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by phil1882

  1. phil1882

    a nice rng?

    yeah I've found that mod is both expensive and a "poor" generator of randomness.
  2. they move in with the back jets, and begin pushing the sand off the surface at a rapid pace. the first target is bump-kiss, no frengi. the second however yields a result. "Hit it now!"
  3. phil1882

    a nice rng?

    so lately i've been studying random number generators out of sheer boredom. i think i've devised a good one. here it is in python. http://pastebin.com/FPjqYphY
  4. let me see if i have the riddle correct with an example. let's say i have 12 playing cards, 4 of which are spades. all cards are over turned, so no one knows which is which. player 1 chooses 1 card, and keeps it down turned. then player 2 chooses 1 card. player 2's card is revealed. if it's a spade, he wins, else keep playing. player 1 picks another card (assuming player 2 didn't win.) player 1 can call stop. if either of the two cards are spade, player 1 wins. else, player 2 wins. sound good?
  5. apologies, its been a while i know. the soldiers begin moving out, around the rim of the volcano, looking for prime frengi spots. "listen" one of the soldiers says, "we should still keep quiet, we want to surprise them if possible. " one spots a good potential target. "remember, we uncover, you kill."
  6. you have a balance scale with an unknown weight, known to be less than 365. to find the wieght, you have the 6 known wieghts 1,3,9,27,81, and 243. you have the following allowed moves: 1) place a wieght on one side of the scale or the other. 2) move a wieght from one side of the scale to the other. 3) remove a wieght. assuming you want to minimize the number of moves, what's the most moves required to find any weight? (that is; what's the worst case scenario for minimizing the number of moves?)
  7. the group make their way back to manta kingdom with back-jets in hand, ready to pitch in. the king directs them to follow, and shows off the army, or what's left of it. "these fine soldiers will help you clean out any remaining frengi. there shouldn't be many left. i imagine 7 - 10 on the outskirts. they will use the back jets to brush off any suspect areas, and you can use these -" takes out a whip like weapon "-to finish them off. once exposed, simply hit them then turn this knob on the end to send a bolt of electricity to the end."
  8. i found it on page 4 of this section with solution
  9. something like this has been posted once before ; i think the solution is...
  10. "umm, the back-jets? we can't just give them to anyone. and i certainly wouldn't reveal where we stash extras, even if i knew. wait a minute, you're the travelers! hold on a second let me see what i can do." *swims away and comes back 15 minutes later with 2 back-jets* "i hope this is sufficient, i got them for you on the condition that you return them by tomorrow. any later than that and it will be my hide, and perhaps yours as well."
  11. the group once again enters the underground water ways, on their way to dolphin kingdom. after a couple hours, they reach their destination. the dolphins are still in the process of celebrating their victory. there are several banners out, proclaiming peace and prosperity.
  12. "i have an idea." the king says. "clearly the majority of them are dead, we just need to see if there are any stragglers still alive." "my suggestion, if you guys are up for another mission, is to go to dolphin kingdom, get one of their back-jets, and use it to uncover any suspected areas."
  13. "a wise idea my friend." after the dust settles, the king sends out several warriors to scope the area. several dead frengi are floating around. one of the soldiers yell to test the ground. nothing moves. he tries again, again nothing. all seven yell at the same time. no motion. they report back to the king. "well either they are dead or playing possum. several loud yells and no motion."
  14. with rocks falling, the group manages to make it out of the tunnel, just in time to hear a BOOM! the volcano has erupted. the flames reach so high that the ceiling of several of the tallest buildings are scorched. "ha! take that frengi!" the king says. "try to eat my people, now your nothing but cooked meat for the scavengers."
  15. flame spots a few side tunnels, but the main tunnel was the way they cam in, taking a side tunnel may lead the group to a dead end, or worse, back toward the volcano. rocks become loose and drop from the ceiling, decision time. haul butt down the known path, or risk the unknown,
  16. the group makes the way out of the tunnel. there is a great rumbling, not just form behind but form ahead as well. the tunnel looks on one verge of collapsing.
  17. the group makes its way down the tunnel. there are glow worms along the side that prevent it from becoming too dark. they reach the carvern without much fuss, except for miki who plays with the glow worms along the way.
  18. the runner leads them to the primary entrace. "this tunnel will take you down quite a ways." he explained. "just follow it untill it dead ends. you should be in a large carvern at that point." "just stick the crystals firmly into the rock, and they should do the rest. hopefully I don't also need to say: get out as quickly as possible."
  19. occ: you guys crack me up! :-) " then it seems to be decided. here are the remaining crystals. my runner will show you the way to the caverns, and how to place the crystals."
  20. "hmm, not sure that's a good idea. while i'm not worried about the eruption itself, the smoke and ash emmited will make it difficult to breathe. i certianly don't want my people anywhere near the area of you intend to try the volcano. no i'm pretty sure you can only do one or the other."
×
×
  • Create New...