Stories
Slash Boxes
Comments

SoylentNews is people

The Fine print: The following are owned by whoever posted them. We are not responsible for them in any way.

Journal by takyon

You have no chance to survive make your time.

---

SoylentNews Archive Expander to go here

Display Options Threshold/Breakthrough Reply to Comment Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1, Funny) by Anonymous Coward on Monday May 22, @02:22PM (1 child)

    by Anonymous Coward on Monday May 22, @02:22PM (#1307328)
    solution:
    for each 3 seconds:
    flip coin;
      if heads:
       flip coin;
        if heads:
         step north;
         look for marbles;
         if marble found, collect;
         next loop;
        if tails:
         step south;
         look for marbles;
         if marble found, collect;
         next loop;
      if tails:
       flip coin;
        if heads:
         step east;
         look for marbles;
         if marble found, collect;
         next loop;
        if tails:
         step west;
         look for marbles;
         if marble found, collect;
         next loop;
    Starting Score:    0  points
    Moderation   +1  
       Funny=1, Total=1
    Extra 'Funny' Modifier   0  

    Total Score:   1  
  • (Score: 2) by istartedi on Monday May 22, @11:42PM

    by istartedi (123) on Monday May 22, @11:42PM (#1307508) Journal

    This could be dramatically more efficient if you prepend the loop with:

    check pockets;

    --
    Appended to the end of comments you post. Max: 120 chars.