Re: A present ...

2002-01-24 Thread Bill -OSX- Jones
Now I know I am stew-pid :( On Thursday, January 24, 2002, at 01:33 PM, Bill -OSX- Jones wrote: > santa ODD length ... duh! -Sx- PS - OK, I am going away for another couple years ...

Re: A present ...

2002-01-24 Thread Bill -OSX- Jones
On Thursday, January 24, 2002, at 12:24 PM, Sven Neuhaus wrote: ...snip.. Thx for the correction to my code - I was able to make a solution at 79 strokes and in doing found a possible bug in the test program: santa Is found but not expected... Did I miss something? -Sx-

Re: A present ...

2002-01-24 Thread Yanick
On Thu, Jan 24, 2002 at 12:32:14PM -0500, Jason Purdy wrote: > I don't have the rules with me (I'm at work now), but I thought that there > has to be an even # (or 0) of each vowel separately. Is that right? This is correct. So the code mentioned in the parent message is broken (sorry,

Re: A present ...

2002-01-24 Thread Bill -OSX- Jones
Luckily what I wrote isn't a solution and I cannot make it one :( >> But ... Still prints even sets of vowels :( >> -Sx- > > Please review the rules for this golf event: > > Please take care to not accidentally post any solutions

Re: A present ...

2002-01-24 Thread Bill -OSX- Jones
Hey :) Don't feel bad - I just seen: # 37 strokes ... #!perl -n length%2&&y/aeiouy//%2||$.%2||print Same results as mine even, but twice as short! !!!/Sx :] On Thursday, January 24, 2002, at 12:32 PM, Jason Purdy wrote: > I'm not sure if I like the "present", though ... I'm a beginner > a

Re: A present ...

2002-01-24 Thread Bill -OSX- Jones
Same results, but Cool none-the-less :) that actually reminds me of something - Thx! On Thursday, January 24, 2002, at 12:24 PM, Sven Neuhaus wrote: > #!perl -n > length%2&&y/aeiouy//%2||$.%2||print _Sx ('>-Sx- IUDICIUM //\ Have Computer - v_/_Will Hack

Re: A present ...

2002-01-24 Thread Ronald J Kimball
On Thu, Jan 24, 2002 at 12:31:51PM -0500, Bill -OSX- Jones wrote: > 69 strokes - > > #!perl -n > next if(($.%2)||(((length)-1)%2));!((tr/aeiouy//)%2) and print"$_"; > > >#!perl -n > >next if(($.%2)||(((length)-1)%2));print"$_" unless((tr/aeiouy//)%2); > > But ... Still prints even sets of vowel

Re: A present ...

2002-01-24 Thread Bill -OSX- Jones
69 strokes - #!perl -n next if(($.%2)||(((length)-1)%2));!((tr/aeiouy//)%2) and print"$_"; > #!perl -n > next if(($.%2)||(((length)-1)%2));print"$_" unless((tr/aeiouy//)%2); But ... Still prints even sets of vowels :( -Sx-

Re: A present ...

2002-01-24 Thread Jason Purdy
I don't have the rules with me (I'm at work now), but I thought that there has to be an even # (or 0) of each vowel separately. Is that right? So if the word was: bane it would pass this program (if it was on an even line), but not the rules since there's an odd # of a's and e's (again, as I

Re: A present ...

2002-01-24 Thread Sven Neuhaus
On Thu, Jan 24, 2002 at 12:10:08PM -0500, Bill -OSX- Jones wrote: > A late Christmas present - 70 strokes... > > #!perl -n > next if(($.%2)||(((length)-1)%2));print"$_" unless((tr/aeiouy//)%2); > > Someone else submit it, my brain is hurting... :( That doesn't work right... You need to count i

A present ...

2002-01-24 Thread Bill -OSX- Jones
A late Christmas present - 70 strokes... #!perl -n next if(($.%2)||(((length)-1)%2));print"$_" unless((tr/aeiouy//)%2); Someone else submit it, my brain is hurting... :( _Sx ('>-Sx- IUDICIUM //\ Have Computer - v_/_Will Hack...