#166548 - 2006-08-30 05:16 AM
Announcement: KiXgolf Tournament September 9-23
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Announcement: KiXgolf Tournament September 9-23
The next KiXgolf tournament will be held September 9-23. The challenge can be descibed as 'jump'n'slide' but it ain't your Grandma's ballroom dancing 
The last tournament can be found at KiXgolf: Mayan Number Converter
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, i.e. the KiXgolf engine does not throw a syntax or other error. 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 10) Only the person posting a particular score will be recognized for the score, unless the KiXtart Golf Challenge organizer or another delegate posts code on behalf of a player
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
#166549 - 2006-08-30 06:52 AM
Re: Announcement: KiXgolf Tournament September 9-23
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
just HAVE to test this html stuff (your post looks flat now)...
| 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, i.e. the KiXgolf engine does not throw a syntax or other error.
- 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
- Only the person posting a particular score will be recognized for the score, unless the KiXtart Golf Challenge organizer or another delegate posts code on behalf of a player
|
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#166550 - 2006-08-30 02:01 PM
Re: Announcement: KiXgolf Tournament September 9-23
|
Benny69
Moderator
   
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
I will be out of town the 11-13 but count me in.
|
|
Top
|
|
|
|
#166553 - 2006-09-02 03:26 AM
Re: Announcement: KiXgolf Tournament September 9-23
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Here are the current rules for your perusal. Changes include allowing the modification of the UDFs, max. runtime of 1 hour for the code, and single-author code submissions.
Also, there is a way to earn one bonus point for the final score by delivering a very specific solution to the problem that needs to be solved.
============= General rules =============
- The UDF must be written as one or more lines.
- The UDF is expected to finish in a reasonable time, e.g. if it gets started when the challenge opens, it's expected to be finished by the
time the challenge closes even on a somewhat slow computer. The UDF has to be valid during the period that the challenge runs.
- You can submit scores as often as you want until the deadline, there's no reason to wait until the last minute for a score submission. In
fact, other people want to see the score to beat. So don't be a spoilsport by hoarding your score. Submit early and often.
- The UDF may only use the KiXtart/KiXforms commands/functions/macros, no other code fragments are allowed. Calls to COM components that
are part of a standard default Windows installation are allowed.
- Calls to other executables, as long as they are part of a standard default Windows installation are allowed.
- The use of the KiXforms DLL is also permitted as the KiXforms DLL can now be considered an integral part of KiXtart scripting.
- The UDF should be self-contained (except for any I/O mentioned in the challenge). In particular, you may not do things like fetching
extra data from a remote site or file.
- You may assume ASCII as character set.
- You may not use block comments as the KiXgolf Scoring Engine does not support block comments
- You are not allowed to use additional code that is external to the KiXgolf UDF Collection. All code must be contained within the KiXgolf UDF Collection.
- You are allowed to only use publicly available versions of KiXtart and KiXforms, private builds or alpha builds are NOT allowed
- Your submitted score must include the KiXart/KiXforms version used.
- All variables must be properly declared as SETOPTION('Explicit','ON') has been coded into the main script
- Other script-wide restrictions, e.g. NoVarsInStrings=ON, are not in effect
- The KiXgolf UDF Collection as enclosed by the ';!' and ';!;!' tags can be modified to e.g. rename the parameter variables, add additional
optional parameters or add additional sub-UDFs.
- Maximum runtime for the code solution is one hour
- Tokenizing the UDF, script, or portions thereof is not allowed
When posting KiXtart Golf Scores, please include the KIXGOLF_*.TXT file that is created in the script directory. It contains some basic information about the computer that the script is run on and the resulting scores.
================================================================ KiXtart GOLF - The Rules ================================================================
- 01) The goal of KiXtart Golf is to score the lowest strokes.
- 02) 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. - 03) Code can be constructed any way you like, as long as it is syntactically correct with KiXtart, i.e. the KiXgolf engine
does not throw a syntax or other error. - 04) The final solution MUST pass all test scripts that accompagny the KiXtart golf challenge.
- 05) The use of '$' as a variable is allowed.
- 06) In case of questions about a particular way to count the KiXtart Golf Challenge organizer
has the last call. - 07) During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player.
- 08) During the public coding phase, code should be posted, reused, and borrowed from other players.
- 09) The test script contains the official KiXgolf scoring engine
- 10) Only the person posting a particular score will be recognized for the score, unless the KiXtart Golf Challenge
organizer or another delegate posts code on behalf of a player
Jens, I took the liberty of reformatting your post some so that it could be more easily read - NTDOC
Edited by NTDOC (2006-09-02 07:44 AM)
|
|
Top
|
|
|
|
#166554 - 2006-09-02 04:54 AM
Re: Announcement: KiXgolf Tournament September 9-23
|
Benny69
Moderator
   
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
Jens, You are da' man! Let the Fun Begin!
|
|
Top
|
|
|
|
#166555 - 2006-09-02 08:35 PM
Re: Announcement: KiXgolf Tournament September 9-23
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
Quote:
The UDF is expected to finish in a reasonable time, e.g. if it gets started when the challenge opens, it's expected to be finished by the time the challenge closes even on a somewhat slow computer. The UDF has to be valid during the period that the challenge runs. ... Maximum runtime for the code solution is one hour
the rules should be combined into one.
|
|
Top
|
|
|
|
#166557 - 2006-09-03 12:10 PM
Re: Announcement: KiXgolf Tournament September 9-23
|
Witto
MM club member
   
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
As UDF's are always code, I presume Jooel has got a point. Has it been posted like this all the past tournaments?  If I add both rules together, the UDF, which is code, should not run longer then one hour.
Edited by Witto (2006-09-03 03:39 PM)
|
|
Top
|
|
|
|
#166561 - 2006-09-08 06:36 PM
Re: Announcement: KiXgolf Tournament September 9-23
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
hmm...
ok, the rules are different... not sure about the section names still.
anyways, came up with something like this.
if someone can spot it, I removed at least one rule that actually hasn't been true for quite some time.
- KiXtart Golf (a.k.a KiXgolf) codes must be written inside the KiXgolf UDF collection tags, ';!' and ';!;!'
- Parameter names of the UDF's can be changed and additional optional parameters can be added.
- Additional helper UDF's can be written as long as they reside inside the ';!' and ';!;!' tags.
- The UDF layout is up to coder.
- The UDF is expected to finish in a reasonable time, that is, on modern computers inside 1 hour timeframe.
- You can submit scores as often as you want.
- If you reach leading score, you are oblicated to post your score immediately so others can try to compete with you.
- The UDF may only use the KiXtart commands/functions/macros, no other code fragments are allowed.
- Calls to COM components that are part of a standard default Windows installation are allowed.
- The use of the KiXforms DLL is also permitted as the KiXforms DLL can now be considered an integral part of KiXtart scripting.
- Calls to other executables, as long as they are part of a standard default Windows installation are allowed.
- The UDF should be self-contained (except for any I/O mentioned in the challenge). In particular, you may not do things like fetching
extra data from a remote site or file.
- You may assume ASCII as character set.
- You may not use block comments as the KiXgolf Scoring Engine does not support block comments.
- You are allowed to only use publicly available versions of KiXtart and KiXforms, private builds or alpha builds are NOT allowed.
- Your submitted score must include the result print of the KiXgolf test-engine.
- All variables must be properly declared.
- You may not use variables or macros inside strings.
- Case-Sensitivity is forced.
- Tokenizing the UDF, script, or portions thereof is not allowed.
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#166562 - 2006-09-08 07:13 PM
Re: Announcement: KiXgolf Tournament September 9-23
|
Gargoyle
MM club member
   
Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
|
Aren't these two conflicting..Quote:
8. The UDF may only use the KiXtart commands/functions/macros, no other code fragments are allowed.
11. Calls to other executables, as long as they are part of a standard default Windows installation are allowed.
8 would preclude you from using VBS to do something more effeciently (I know fat chance but it could happen). 11 says since it is part of standard windows installation it can be used
|
|
Top
|
|
|
|
#166565 - 2006-09-09 02:47 AM
Re: Announcement: KiXgolf Tournament September 9-23
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4562
Loc: USA
|
Come on Jens... lets get this party started. What's starting a few hours early going to effect? I got football to watch tomorrow
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 962 anonymous users online.
|
|
|