#163977 - 2006-07-04 11:25 PM
Announcement: KiXgolf tournament July 15-30
|
Sealeopard
KiX Master
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
|
Yes, it's true. KiXgolf is back. The next tournament will be held July 15-30. The task will deal with some pyramid-builders.
The last tournament can be found at KiXgolf: Fragmentation
For those of you who never heard of KiXgolf, here's the rundown:
================================================================ KiXtart GOLF - How To Play ================================================================
Most importantly, anybody can play, no age restrictions, no penalties, no handicap!
The object in "real" golf is to hit the ball in the hole in the fewest strokes. The object in KiXtart Golf is to get from input (tee) to target (hole) in the fewest keystrokes.
Example: How many positive elements are in array $a?
Array $a could be of structure $a=[1, 2 ,-3, 4, -5, -7, 8, 9]
One approach: [CODE] for $b=0 to ubound($a) if $a[$b]>0 $c=$c+1 endif next [/CODE] for a score of 45.
Another solution is: [CODE] DO $b=$b+1 if $a[$b]>0 $c=$c+1 endif UNTIL $b>(UBOUND($a)+1) [/CODE] for a score of 53.
Better approach: Code sample 1
================================================================ KiXtart GOLF - The Rules ================================================================
1) The goal of KiXtart Golf is to score the lowest strokes. 2) Strokes are all characters in a piece of code except whitespace characters, unless the whitespace character is necessary for the line of code to work. Therefore, carriage returns and line feeds do not count or spaces in between the '=' sign when assigning variables, e.g. '$a = $b' scores 5. 3) Code can be constructed any way you like, as long as it is syntactically correct with KiXtart. 4) The final solution MUST pass all test scripts that accompagny the KiXtart golf challenge. 5) The use of '$' as a variable is allowed. 6) In case of questions about a particular way to count the KiXtart Golf Challenge organizer has the last call. 7) During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player. 8) During the public coding phase, code should be posted, reused, and borrowed from other players. 9) The test script contains the official KiXgolf scoring engine
_________________________
There are two types of vessels, submarines and targets.
|
Top
|
|
|
|
#163978 - 2006-07-05 04:27 AM
Re: Announcement: KiXgolf tournament July 15-30
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
2 weeks? Is this one that complicated?
|
Top
|
|
|
|
#163979 - 2006-07-05 08:11 AM
Re: Announcement: KiXgolf tournament July 15-30
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
I hope not. Give us Golfing noobs a chance
|
Top
|
|
|
|
#163983 - 2006-07-05 09:16 PM
Re: Announcement: KiXgolf tournament July 15-30
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
i got 24 too, trying to find the 23 lonk speeks of, but i don't think i am that good
|
Top
|
|
|
|
#163986 - 2006-07-06 03:06 AM
Re: Announcement: KiXgolf tournament July 15-30
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
You saying a bunch of us old timers are dumb
|
Top
|
|
|
|
#163990 - 2006-07-06 03:48 PM
Re: Announcement: KiXgolf tournament July 15-30
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
ok, got 23, but after that i need an aspirin, man my head hurts,... but, by now lonk prolly has it down to 1
|
Top
|
|
|
|
#163991 - 2006-07-06 03:52 PM
Re: Announcement: KiXgolf tournament July 15-30
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
this is what i came up with: Code:
For Each $ in $a $c=$c+($>0)
did you guys come up with something dif?
|
Top
|
|
|
|
#163992 - 2006-07-06 04:14 PM
Re: Announcement: KiXgolf tournament July 15-30
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
Scores, Code? Where is this Golf warm up coming from?
|
Top
|
|
|
|
#163996 - 2006-07-06 05:50 PM
Re: Announcement: KiXgolf tournament July 15-30
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
is there a handicap for age? it took me longer to come up with that than Jochen and Lonk. you know everything slows down as you get older ya, i will join in the fun.
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 382 anonymous users online.
|
|
|