in reply to Golf: 3 hole golf game
36 and 46 strokes for #2 and #3. No solution presented for #1.
#2: File::Util is in current core, so,
36 strokes.#!/usr/bin/perl - use File'Util shuffle;print shuffle<>
#3 is similar
46 strokes#!/usr/bin/perl - use List'Util shuffle;print+(shuffle<>)[0,1]
After Compline,
Zaxo
|
|---|