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;
(Score: 1, Funny) by Anonymous Coward on Monday May 22, @02:22PM (1 child)
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;
(Score: 2) by istartedi on Monday May 22, @11:42PM
This could be dramatically more efficient if you prepend the loop with:
Appended to the end of comments you post. Max: 120 chars.