#146069 - 2005-08-21 10:11 PM
KiXgolf is back - with a vengeance :-)
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Announcing the schedule for two new KiXgolf tournaments, dealing with happiness and clumsiness, respectively:
Happiness starts on Friday, August 26, 2005, 6pm EST.
Clumsiness follows on Friday, September 30, 2005, 6:00pm EST
However, after finishing either coding challenge, I will not garantee for either happiness or clumsiness 
================================================================ 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 ================================================================
- The goal of KiXtart Golf is to score the lowest strokes.
- 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.
- Code can be constructed any way you like, as long as it is syntactically correct with KiXtart.
- The final solution MUST pass all test scripts that accompagny the KiXtart golf challenge.
- The use of '$' as a variable is allowed.
- In case of questions about a particular way to count the KiXtart Golf Challenge organizer has the last call.
- During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player.
- During the public coding phase, code should be posted, reused, and borrowed from other players.
- The test script contains the official KiXgolf scoring engine
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
#146071 - 2005-08-22 04:13 AM
Re: KiXgolf is back - with a vengeance :-)
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
What you mean no handicap. Think Lonk should give us some handicap
|
|
Top
|
|
|
|
#146082 - 2005-08-26 04:26 PM
Re: KiXgolf is back - with a vengeance :-)
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
Quote:
Happiness starts on Friday, August 26, 2005, 6pm EST.
that is: Happiness starts on Friday, August 26, 2005, 12pm CET. Happiness starts on Saturday, August 27, 2005, 1am EEST (finlands timezone). Happiness starts on Saturday, August 27, 2005, 9am Sydney time.
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#146088 - 2005-08-27 02:19 AM
Re: WTF!
|
StarwarsKid
Seasoned Scripter
   
Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
|
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 601 anonymous users online.
|
|
|