|
|
|||||||
============= The Challenge - Four is Magic ============= A popular puzzle Teachers use to make students think about numbers is called "Four is Magic". The puzzle would go something like this. The teacher would ask the students to give him a number. Upon hearing the number, the teacher would do some sort of transformation on it repeatedly, until arriving at the number four, at which point the teacher would proclaim "four is magic". The challenge for the students was to figure out how every number they gave the teacher always equaled four. For Example, the students gave the number 25, the teacher would say: 25 is 10. 10 is 3. 3 is 5. 5 is 4. 4 is magic. The solution to the puzzle was to take the number in question and count the number of letters in the word(in English, ignoring spaces and hypens"). Upon getting this number, repeat on the next number, until the number of letters equals 4. So using the example above: 25 has 10 letters. 10 has 3 letters. 3 has 5 letters. 5 has 4 letters. 4 is magic. A download is available at http://www.kixtart.org/forums/ubbthreads.php?ubb=download&Number=225 ============= Specification ============= Given a number(in words or a number), determine the transformation, and proclaim "4/Four is Magic". There is one exception rule. When the input is only "4" or "four", there is no transformation. Just simply proclaim 4 is magic. or four is magic. ============= Inputs and Outputs ============= The input consists of either a number(0-99) or a string representing a number(zero - ninety nine). If the input is a number (0-99), the output is in the format of: 25 is 10. 10 is 3. 3 is 5. 5 is 4. 4 is magic. If the input is a string (zero through ninety nine), and the input numbers have spaces, the output is in the format of: twenty five is ten. ten is three. three is five. five is four. four is magic. If the input is string (zero through ninety-nine), and the input numbers have hyphens, the output is in the format of: twenty-five is ten. ten is three. three is five. five is four. four is magic. ** When counting number of letters, ignore spaces or hypens. ** ================================================================= Notes ================================================================ - The scoring engine has added code to help diagnose which cases are failing. To see test case results: Code: kix32 kixgolf_fim $verbose=1 ;shows failing results kix32 kixgolf_fim $verbose=2 ;shows all results - The scoring engine expects your (primary) function to be named a(). ======= Scoring ======= The solution must pass all tests in order for it's KiXgolf Score to be considered. 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. ============ Test program ============ Test cases are provided to help screen entries and to provide the Golf Score. Any script that passes the test cases can be submitted. If you are surprised that your solution passed the test cases, please submit it anyway! That will help me identify bugs in the test program. ================================================================ 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 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) 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 does not generate syntax or other errors when running the script in KiXtart. 4) The final solution MUST pass all test scripts that are part of the KiXtart golf challenge. 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 11) KiXtart Golf (a.k.a KiXgolf) codes must be written inside the KiXgolf UDF collection tags, ';!' and ';!;!' 12) Parameter names of the UDF's can be changed and additional optional parameters can be added. 13) Additional helper UDFs and code can be written as long as they reside inside the ';!' and ';!;!' tags. 14) The use of '$' as a variable is allowed. 15) The UDF layout is up to coder. 16) The UDF is expected to finish in a reasonable time, that is, on modern computers inside 1 hour timeframe. 17) You can submit scores as often as you want. 18) If you reach leading score, you are obligated to post your score immediately so others can try to compete with you. 19) The UDF may only use the KiXtart/KiXforms commands/functions/macros, no other code fragments are allowed. 20) Calls to COM components that are part of a standard default Windows installation are allowed. 21) The use of the KiXforms DLL is also permitted as the KiXforms DLL can now be considered an integral part of KiXtart scripting. 22) Calls to other executables, as long as they are part of a standard default Windows installation are allowed. 23) 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. 24) You may assume ASCII as character set. 25) You may use block comments as the KiXgolf Scoring Engine now supports block comments. 26) You are allowed to only use publicly available versions of KiXtart and KiXforms, private builds or alpha builds are NOT allowed. 27) Your submitted score must include the result print of the KiXgolf test-engine. 28) The SETOPTION() parameters in the KiXgolf script may not be modified and will govern the script behavior. SETOPTION() parameters may change depending on the particular needs of the KiXgolf challenge. 29) Tokenizing the UDF, script, or portions thereof is not allowed. 30) If something is not explicitly denied by the rules, it's allowed. 31) If Confusion arises, arranger of the KiXgolf round has the final say. 32) Additional test cases can be added at any time during the KiXgolf round. The code is expected to pass based on the rules. The test cases may not include tests for all rules and exceptions. Test cases that are added during the public round will not alter the results of the private round. ================================================================ KiXtart GOLF - The Duration of the Competition ================================================================ 1) Private coding phase: 2011-05-01 to 2011-05-08 (Official Count down clock will determine end time) 2) Public coding phase: 2011-05-08 to 2010-05-15 3) Final results: 2011-08-16 *--> You will need the complete package from http://www.kixtart.org/forums/ubbthreads.php?ubb=download&Number=225. |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
I had some work to do this afternoon, so I started it a little early. Hope you enjoy. |
||||||||
|
|
|||||||
Hey, your countdownclock still has 26 minutes left btw. nice problem Allen. |
||||||||
|
|
|||||||
woot? text input? wtf! does not compute... |
||||||||
|
|
|||||||
lol... okay... string is what I meant. fixed. |
||||||||
|
|
|||||||
hehe, thats what I thought too .. here are my first miserable steps: Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 2669 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/01 19:37:27.420 Processing End = 2011/05/01 19:37:27.670 Duration = 0000/00/00 00:00:00.250 # Tests Run = 200 # Tests Passed = 54 # Tests Failed = 146 Result = failed KiXGolf Score = 409 Thank you for participating in KiXtart Golf! Press any key to continue... nB.: someone stolen my Q8400 and replaced it with a P III ??? |
||||||||
|
|
|||||||
this should be interesting... |
||||||||
|
|
|||||||
getting there Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Turion(tm) II P540 Dual-Core Processor Speed = 2394 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/01 14:05:40.719 Processing End = 2011/05/01 14:05:40.760 Duration = 0000/00/00 00:00:00.041 # Tests Run = 200 # Tests Passed = 92 # Tests Failed = 108 Result = failed KiXGolf Score = 249 |
||||||||
|
|
|||||||
I can handle actually the input but output being readable english? that's just wicked and will hock my score BAD. |
||||||||
|
|
|||||||
well, whining done. I better see if I can wrap this up today. |
||||||||
|
|
|||||||
It's ugly, but it's working Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Turion(tm) II P540 Dual-Core Processor Speed = 2394 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/01 14:49:15.274 Processing End = 2011/05/01 14:49:15.828 Duration = 0000/00/00 00:00:00.554 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 525 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Nice tee off Eric, here's my actual: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 2669 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/01 21:06:20.256 Processing End = 2011/05/01 21:06:20.318 Duration = 0000/00/00 00:00:00.062 # Tests Run = 200 # Tests Passed = 199 # Tests Failed = 1 Result = failed KiXGolf Score = 507 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Thanks, Jochen! Slashed a few more strokes, good enough for day 1 Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Turion(tm) II P540 Dual-Core Processor Speed = 2394 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/01 15:36:44.236 Processing End = 2011/05/01 15:36:44.297 Duration = 0000/00/00 00:00:00.061 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 402 |
||||||||
|
|
|||||||
The score drops, the error remains the same ... KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 2669 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/01 21:42:11.008 Processing End = 2011/05/01 21:42:11.055 Duration = 0000/00/00 00:00:00.046 # Tests Run = 200 # Tests Passed = 199 # Tests Failed = 1 Result = failed KiXGolf Score = 440 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
didn't have time yesterday to play and am late from work now, but... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 08:41:45.276 Processing End = 2011/05/02 08:41:45.518 Duration = 0000/00/00 00:00:00.241 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 461 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
oops... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 08:45:39.981 Processing End = 2011/05/02 08:45:40.307 Duration = 0000/00/00 00:00:00.326 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 384 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Very strange error I had there .. puzzled me for some hours, but now fixed.. KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 10:10:22.687 Processing End = 2011/05/02 10:10:22.875 Duration = 0000/00/00 00:00:00.188 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 438 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 10:25:38.312 Processing End = 2011/05/02 10:25:38.468 Duration = 0000/00/00 00:00:00.156 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 432 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 10:38:51.828 Processing End = 2011/05/02 10:38:51.984 Duration = 0000/00/00 00:00:00.155 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 419 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
slowly but surely.. KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 11:27:23.406 Processing End = 2011/05/02 11:27:23.546 Duration = 0000/00/00 00:00:00.139 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 416 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
slowly indeed. sneaked out for a "coffee break" :P Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 13:07:56.400 Processing End = 2011/05/02 13:07:56.608 Duration = 0000/00/00 00:00:00.207 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 369 |
||||||||
|
|
|||||||
dude, wtf? |
||||||||
|
|
|||||||
hmm... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 13:22:58.891 Processing End = 2011/05/02 13:22:59.144 Duration = 0000/00/00 00:00:00.252 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 362 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 13:28:42.784 Processing End = 2011/05/02 13:28:42.976 Duration = 0000/00/00 00:00:00.192 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 355 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Quit doing coffee breaks |
||||||||
|
|
|||||||
ok, this is the last one. Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 13:38:04.011 Processing End = 2011/05/02 13:38:04.215 Duration = 0000/00/00 00:00:00.203 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 347 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 12:53:34.953 Processing End = 2011/05/02 12:53:35.125 Duration = 0000/00/00 00:00:00.171 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 412 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 13:40:02.968 Processing End = 2011/05/02 13:40:03.078 Duration = 0000/00/00 00:00:00.110 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 404 Thank you for participating in KiXtart Golf! Press any key to continue... 3 to go for 2nd place. |
||||||||
|
|
|||||||
you shall get there before workday is over |
||||||||
|
|
|||||||
yay! Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 14:03:46.343 Processing End = 2011/05/02 14:03:46.515 Duration = 0000/00/00 00:00:00.171 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 397 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
5 more Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 15:57:12.984 Processing End = 2011/05/02 15:57:13.156 Duration = 0000/00/00 00:00:00.172 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 392 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
welcome to the under 4-club. wonder if we are gonna have a later arrival that will score like 190-210 on first post. |
||||||||
|
|
|||||||
I'm going to be a late arrival...but I wouldnt count on anything close to 200 lol |
||||||||
|
|
|||||||
oops. I did it again -unknown artist Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 19:58:27.481 Processing End = 2011/05/02 19:58:27.733 Duration = 0000/00/00 00:00:00.251 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 344 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
hmm, can't see where my current hold 50+ less strokes.. think I do this from scratch again. |
||||||||
|
|
|||||||
..well, some more anyway Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 2669 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 19:36:29.815 Processing End = 2011/05/02 19:36:29.862 Duration = 0000/00/00 00:00:00.046 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 387 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
ok, but thats about it .. ja, I know Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 2669 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 19:45:49.877 Processing End = 2011/05/02 19:45:49.924 Duration = 0000/00/00 00:00:00.047 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 382 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
you just keep on coming strong... KiXGolf Score = 342 |
||||||||
|
|
|||||||
Ok, from now on I will whine every second post that there are no more strokes to drop.. seems to work Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 2669 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 20:00:45.765 Processing End = 2011/05/02 20:00:45.812 Duration = 0000/00/00 00:00:00.047 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 380 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
KiXGolf Score = 378 |
||||||||
|
|
|||||||
Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/02 21:15:45.881 Processing End = 2011/05/02 21:15:46.320 Duration = 0000/00/00 00:00:00.439 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 334 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
what happened with your runtime? |
||||||||
|
|
|||||||
KiXGolf Score = 371 oh, btw: I can't shave any more strokes *Sob* |
||||||||
|
|
|||||||
runtime? well... it might be that my algorithm is twice as hard now |
||||||||
|
|
|||||||
whoops, I forgot to golf today...maybe tomorrow. Gonna have a lot of catching up to do! |
||||||||
|
|
|||||||
welcome this doesn't look so cool anymore, but... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 06:16:40.856 Processing End = 2011/05/03 06:16:41.137 Duration = 0000/00/00 00:00:00.280 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 331 |
||||||||
|
|
|||||||
again, not so neat, but the strokes count... so. Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 06:49:05.352 Processing End = 2011/05/03 06:49:05.689 Duration = 0000/00/00 00:00:00.336 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 330 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
this one doesn't make any sense. I just can't get my head around why, but if kix says apples equal bananas, fine with me. Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 07:54:28.073 Processing End = 2011/05/03 07:54:28.470 Duration = 0000/00/00 00:00:00.397 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 328 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
hmmm... don't like the sound of that... do you think the scorer is missing something? |
||||||||
|
|
|||||||
rewrite ongoing .. may post a much lesser score anytime today |
||||||||
|
|
|||||||
that was a fast rewrite ... KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2526 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 08:57:23.167 Processing End = 2011/05/03 08:57:23.323 Duration = 0000/00/00 00:00:00.155 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 326 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
moving on.. KiXGolf Score = 325 |
||||||||
|
|
|||||||
KiXGolf Score = 317 |
||||||||
|
|
|||||||
I'm going to have to try when I get home today. I think my score will be around 1500 or so? |
||||||||
|
|
|||||||
Hey, go for it Brad, I'm sure you can cobble somethin up less than 500.. |
||||||||
|
|
|||||||
meanwhile.. KiXGolf Score = 316 |
||||||||
|
|
|||||||
|
||||||||
|
|
|||||||
Allen, no issues with the scorer. something funky about kix. |
||||||||
|
|
|||||||
KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Professional CPU = Intel Pentium III Speed = 2527 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 15:39:57.281 Processing End = 2011/05/03 15:39:57.437 Duration = 0000/00/00 00:00:00.155 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 308 Thank you for participating in KiXtart Golf!let's see if I can get this below 300 |
||||||||
|
|
|||||||
yhyy... I changed mine as well... got 380 I have long way to go with this one to get close to my old score |
||||||||
|
|
|||||||
Yikes! but hey, you still got time left.. |
||||||||
|
|
|||||||
lol... went back to my old one, got 321. still not even close |
||||||||
|
|
|||||||
320 |
||||||||
|
|
|||||||
this is getting almost funny. or me slaphappy... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 21:49:50.421 Processing End = 2011/05/03 21:49:50.699 Duration = 0000/00/00 00:00:00.277 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 319 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Hmm .. somehow there sneaked an iif() in. I remember someone said that theres always a better option than iif() Ok, getting rid of the iif() in a clever way would bring me back to |
||||||||
|
|
|||||||
I refuse your reality and substitute it with my own. oh how it went? Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 23:15:30.407 Processing End = 2011/05/03 23:15:30.761 Duration = 0000/00/00 00:00:00.353 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 307 Thank you for participating in KiXtart Golf! damn, that took time. |
||||||||
|
|
|||||||
see? |
||||||||
|
|
|||||||
Sometimes more is less!!! Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 23:29:22.895 Processing End = 2011/05/03 23:29:23.206 Duration = 0000/00/00 00:00:00.311 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 302 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Yikes! but hey, I still got time left.. |
||||||||
|
|
|||||||
Finally getting back to it...hope I can remember what I was thinking a couple days ago |
||||||||
|
|
|||||||
slowly but surely... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Turion(tm) II P540 Dual-Core Processor Speed = 2394 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 20:51:27.805 Processing End = 2011/05/03 20:51:28.414 Duration = 0000/00/00 00:00:00.609 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 378 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Turion(tm) II P540 Dual-Core Processor Speed = 2394 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 21:04:29.552 Processing End = 2011/05/03 21:04:30.145 Duration = 0000/00/00 00:00:00.593 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 336 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Done for the night Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Turion(tm) II P540 Dual-Core Processor Speed = 2394 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/03 21:17:02.013 Processing End = 2011/05/03 21:17:02.122 Duration = 0000/00/00 00:00:00.108 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 329 |
||||||||
|
|
|||||||
yea, good that you have time left J! Erik, nice. |
||||||||
|
|
|||||||
Good Morning KiXters Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/04 06:25:44.925 Processing End = 2011/05/04 06:25:45.313 Duration = 0000/00/00 00:00:00.387 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 287 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Dude! What did you do there? |
||||||||
|
|
|||||||
oops. will I be disqualified? |
||||||||
|
|
|||||||
Why should you? |
||||||||
|
|
|||||||
Can't shorten this anymore .. rewrite? |
||||||||
|
|
|||||||
I actually ended up using my original code... just replaced lots of useless characters with none |
||||||||
|
|
|||||||
so, which one was your shortest score? |
||||||||
|
|
|||||||
Originally Posted By: Jochen
let's see if I can get this below 300 |
||||||||
|
|
|||||||
that would be cool I just can't come up with anything. running out of crazy ideas as well... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/04 17:26:55.554 Processing End = 2011/05/04 17:26:55.919 Duration = 0000/00/00 00:00:00.365 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 286 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
pfft .. in the mean time im desperate enough to try select case statements. |
||||||||
|
|
|||||||
sorry Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Professional Edition CPU = Intel Pentium III Speed = 1396 MHz Memory = 4096 MB Tournament = Four Is Magic Processing Start = 2011/05/04 17:35:59.716 Processing End = 2011/05/04 17:35:59.988 Duration = 0000/00/00 00:00:00.271 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 283 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Finally on the board at least haha... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Home Edition CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 768 MB Tournament = Four Is Magic Processing Start = 2011/05/04 10:55:21.604 Processing End = 2011/05/04 10:55:21.697 Duration = 0000/00/00 00:00:00.093 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 703 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
congrats Shane, now get rid of a couple hundred characters.. |
||||||||
|
|
|||||||
Some big drops in scores and a new player added to the list :) |
||||||||
|
|
|||||||
I've seen some lurkers around this thread... wonder if they gonna drop in or if they decided the game is over by now :P |
||||||||
|
|
|||||||
I'm sort of confused about Rogier... he responded on FB the past two times that he was participating... but nada. I honestly thought we would have a few players who play less often, since this task is pretty easy, comparatively to the last one or others. |
||||||||
|
|
|||||||
Yeah the actual task doesn't seem too hard. It's just trying to get it done with few strokes. |
||||||||
|
|
|||||||
yea. that's what is so weird. task semi-easy and participant count still low. for example Erik came, saw and used estimated 30 mins of his time to come up with a working code and added some 10 mins to end up with a pretty good score. maybe we should expand the task a bit. lets allow from now on all languages :P even powershell users could join with their 10.000 stroke codes |
||||||||
|
|
|||||||
Yeah the task is easy, but golfing is always tough. I wonder how many people try to play but never post? Anyway.... KiXGolf Score = 321 "only" 39 more strokes to go...for now |
||||||||
|
|
|||||||
The zip has been downloaded 13 times so far... |
||||||||
|
|
|||||||
Well, I've made some progress. I almost have all the numeric inputs working. Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Media Center Edition CPU = Intel(R) Pentium(R) 4 CPU 3.00GHz Speed = 3000 MHz Memory = 1024 MB Tournament = Four Is Magic Processing Start = 2011/05/04 18:04:20.663 Processing End = 2011/05/04 18:04:20.804 Duration = 0000/00/00 00:00:00.140 # Tests Run = 100 # Tests Passed = 76 # Tests Failed = 24 Result = failed KiXGolf Score = 732 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Glad to see you playing! Once you have the numerics working, the words should come easy. |
||||||||
|
|
|||||||
KiXGolf Score = 317 Keep at it Brad! |
||||||||
|
|
|||||||
KiXGolf Score = 316 Done for the day. I've got some "golf ugly" code that I just can't figure out how to get rid of...yet |
||||||||
|
|
|||||||
Well, I got all the numeric inputs to work. I'll have to work on text tomorrow. Part of my problem was that I was spelling 40 as fourty. Time to watch some hockey! |
||||||||
|
|
|||||||
haha i made that same mistake brad! |
||||||||
|
|
|||||||
lol, me too. at the end before working code, had 2 failers, forty and something else |
||||||||
|
|
|||||||
Hey guys, Sorry that I can't fully participate in this round. I really looked forward to it, but work & private life take too much time at the moment... I've downloaded the zip file and I'll try to get a score on the board, but to be honest, I don't think I'll be able to. By the way: semi-easy??? pffft, not for me! |
||||||||
|
|
|||||||
:P thanks for dropping by though. and once you post the winning score, then you can complain that it wasn't easy |
||||||||
|
|
|||||||
Ok, let's try whining again.. I can't squeeze out any more strokes from my code Need a fresh idea.. |
||||||||
|
|
|||||||
hehee... that should work |
||||||||
|
|
|||||||
slowly... Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Home Premium Edition CPU = AMD Athlon(tm) II P340 Dual-Core Processor Speed = 2194 MHz Memory = 3072 MB Tournament = Four Is Magic Processing Start = 2011/05/05 11:17:55.176 Processing End = 2011/05/05 11:17:55.242 Duration = 0000/00/00 00:00:00.065 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 660 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
cool |
||||||||
|
|
|||||||
way too many IF's! Gotta be a better flow somehow. |
||||||||
|
|
|||||||
OK - I'm in.. Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows 7 Enterprise Edition CPU = Intel Pentium Model 14 Speed = 1662 MHz Memory = 2048 MB Tournament = Four Is Magic Processing Start = 2011/05/05 14:28:53.754 Processing End = 2011/05/05 14:28:53.910 Duration = 0000/00/00 00:00:00.156 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 637 Thank you for participating in KiXtart Golf! Glenn |
||||||||
|
|
|||||||
Glad to see you play Glenn... now let us get Brad on board. |
||||||||
|
|
|||||||
Hey, I'm in the lead! Code: KiXtart Version = 4.61 KiXGolf Script = kixgolf_fim.kix Scoring Engine = 3.3 OS = Windows XP Media Center Edition CPU = Intel(R) Pentium(R) 4 CPU 3.00GHz Speed = 3000 MHz Memory = 1024 MB Tournament = Four Is Magic Processing Start = 2011/05/05 15:31:13.305 Processing End = 2011/05/05 15:31:13.430 Duration = 0000/00/00 00:00:00.125 # Tests Run = 200 # Tests Passed = 200 # Tests Failed = Result = passed KiXGolf Score = 1085 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
lol. damn, I saw your line on the active topics view and was WTF!!!!!!!!!! 2 new entrees... awesome. thanks for taking the bite Glenn. |
||||||||
|
|
|||||||
yhyy... 3 different designs and all come down to the same score |
||||||||
|
|
|||||||
wow. new error message, "fatal exception occured" haven't seen that in a while |
||||||||
|
|
|||||||
Um, Brad? You do know the object is to get the lowest score, right? Welcome to the links - the weather's great today! Glenn |
||||||||
|
|
|||||||
Originally Posted By: Lonkero wow. new error message, "fatal exception occured" haven't seen that in a while I have an array ref out of bounds as soon the input reaches 38 .. all string input and numbers <38 are ok and passing the tests, but as soon my code is feed with 38 it crashes. Would have give me a 307 if it worked.. I can't explain the logic behind that error |
||||||||
|
|
|||||||
faced that for a while, upped my score to make it work and trashed that design I had |
||||||||
|
|
|||||||
I actually found a new trick... at least something I didn't know before. kinda cool :P |
||||||||
|
|
|||||||
Anyone still playing? |
||||||||
|
|
|||||||
yes, but no progress.. Just from staring at the code it doesn't get any smaller |
||||||||
|
|
|||||||
you should try to switch to smaller font. helps me |
||||||||
|
|
|||||||
Sorry Allen...They've been pushing me to get this project done at work. Hopefully tonight I can give it another go. |
||||||||
|
|
|||||||
No apologies necessary. I was just kind of wondering if everyone was stuck, and it appears that is the case. |
||||||||
|
|
|||||||
I woke up in the middle of the night, had a brilliant revelation about the code, and promptly fell back to sleep. No idea what that thought was now... Too many irons in the fire to sit and stare at the code, although the "smaller font" suggestion did work for a while. Gave up after the eyestrain headache set in. Glenn |
||||||||
|
|
|||||||
I haven't been able to get back to golfing since my last post and won't today either. I'm gonna be gone this afternoon, so I'll send Allen my code to post. |
||||||||
|
|
|||||||
oh... I might do that too. at my parents now and for the moment have the web-access, but not sure for how long. |
||||||||
|
|
|||||||
The private round has completed. The public round will continue in the following thread: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=202149#Post202149 |