Page 1 of 3 123>
Topic Options
#163977 - 2006-07-04 11:25 PM Announcement: KiXgolf tournament July 15-30
Sealeopard Offline
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 Administrator Online   shocked
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 Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
I hope not. Give us Golfing noobs a chance
Top
#163980 - 2006-07-05 12:11 PM Re: Announcement: KiXgolf tournament July 15-30
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm ... my best approach so far on the positive elements counting sample above scores 27.

Maybe I should attend this time? Does it even qualify as an acceptable handicap?


Edited by Jochen (2006-07-05 01:20 PM)
_________________________



Top
#163981 - 2006-07-05 09:02 PM Re: Announcement: KiXgolf tournament July 15-30
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jochen, I got 24.
_________________________
!

download KiXnet

Top
#163982 - 2006-07-05 09:04 PM Re: Announcement: KiXgolf tournament July 15-30
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm... 23 if I loose the if.
_________________________
!

download KiXnet

Top
#163983 - 2006-07-05 09:16 PM Re: Announcement: KiXgolf tournament July 15-30
Benny69 Offline
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
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#163984 - 2006-07-05 11:45 PM Re: Announcement: KiXgolf tournament July 15-30
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmmm ... not bad then for a 15 minute session against the score of a pro golfer ... think I join the fun this time.
Wee, my first golf round
_________________________



Top
#163985 - 2006-07-06 02:51 AM Re: Announcement: KiXgolf tournament July 15-30
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Trust me, it's an easy one
_________________________
There are two types of vessels, submarines and targets.

Top
#163986 - 2006-07-06 03:06 AM Re: Announcement: KiXgolf tournament July 15-30
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
You saying a bunch of us old timers are dumb
Top
#163987 - 2006-07-06 05:06 AM Re: Announcement: KiXgolf tournament July 15-30
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
???

I'm just saying the next tournament is an easy one, kind-of like a warm-up round.
_________________________
There are two types of vessels, submarines and targets.

Top
#163988 - 2006-07-06 09:10 AM Re: Announcement: KiXgolf tournament July 15-30
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
btw. Huh?
You got 24 with an if in there?
Insanity!
Do you loose the endif then ?
_________________________



Top
#163989 - 2006-07-06 10:26 AM Re: Announcement: KiXgolf tournament July 15-30
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yup, got 23 too.

Didn't know that you can leave this keyword-thing out without getting an error until I tested it
_________________________



Top
#163990 - 2006-07-06 03:48 PM Re: Announcement: KiXgolf tournament July 15-30
Benny69 Offline
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
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#163991 - 2006-07-06 03:52 PM Re: Announcement: KiXgolf tournament July 15-30
Benny69 Offline
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?
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#163992 - 2006-07-06 04:14 PM Re: Announcement: KiXgolf tournament July 15-30
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Scores, Code? Where is this Golf warm up coming from?
Top
#163993 - 2006-07-06 04:22 PM Re: Announcement: KiXgolf tournament July 15-30
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
exactly the same as mine ... well except for the varnames :

Code:

break on

$a = 1, 2 ,-3, 4, -5, -7, 8, 9

;! Tee
for each $ in $a
$_ = $_ + ($>0)
;! Hole



I am pretty sure there is no further improvement possible.

@Allen: just having some fun with the sample course from Jens' announcement
_________________________



Top
#163994 - 2006-07-06 04:32 PM Re: Announcement: KiXgolf tournament July 15-30
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I hope you guys play the real one. Its a lot fun... except for being humbled by the Lonkanator, and Eric (maciep)... hmmm wonder if Eric knows we are getting ready to play?
Top
#163995 - 2006-07-06 05:04 PM Re: Announcement: KiXgolf tournament July 15-30
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Sweet! I'm too busy at work these days to post much out here, but I still hang around.

See you guys on the course...

Top
#163996 - 2006-07-06 05:50 PM Re: Announcement: KiXgolf tournament July 15-30
Benny69 Offline
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.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
Page 1 of 3 123>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.072 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org