|
|
|||||||
============= The Challenge: "A-to-Z" ============= A-to-Z is a game usually played by kids in elementary schools to help them improve their spelling skills and to enrich their vocabulary. The game comes with a set of words, each word written on a piece of plastic. Children challenge each other by picking two letters (let's call them C1 and C2) and then trying to connect these letters by finding a sequence of one or more words (we’ll refer to them as W1, W2, . . . , Wn) where the first word W1 starts with C1 and the last word Wn ends with C2. Each two consecutive words in the sequence (Wi, Wi+1) must overlap with at least two letters. Word X overlaps by k letters with word Y if the last k letters of X are the same as the first k letters of Y . Take for example the words below, where 'a' was connected to 's' using the two-word sequence "against" and "students". Code: Example 1: against students Example 2: about outside ideas To determine the winner of the game, each sequence is assigned a penalty which is equal to the number of letters in the sequence (but overlapping letters are counted only once.) The player with the least penalty wins. Going back to the figure, the first sequence "against students" has a penalty of 13, while the second sequence "about outside ideas" has a penalty of 11. You can think of the penalty as the width taken when the sequence is laid out as in the examples. The winning sequence is the one with the smallest width. Write a program that takes a dictionary of words and determines the winning sequence connecting two given letters. A download is available at http://s91376351.onlinehome.us/kixtart/kixgolf_a2z.zip ============= Inputs & Outputs ============= Your script will be tested on one or more test cases. Each test case specifies a dictionary of words, and a character pair to connect using the dictionary. The script will provide two inputs into the UDF, namely an array of dictionary words and an array consisting of the beginning and ending letter in array elements 0 and 1, respectively. The output for each test case should be either an integer number representing the penalty follwed by a space followed by the sequence of chained words where the words are also separated by a single space each or the interger 0 in case no solution was found. Thus, the output for example 1 would be "13 against students". ======= Scoring ======= You will need to pass all test cases in order for the KiXgolf score to count. 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 accompagny the KiXtart golf challenge. Some test scripts may not be included in the publicly available test suite but may be utilized as part of the official KiXgolf score verification. 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 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 a 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. ================================================================ KiXtart GOLF - The Duration of the Competition ================================================================ 1) Private coding phase: From date/time of posting the tournament challenge to Wednesday, September 12, 6pm EST (BBS+6 time) 2) Public coding phase: From Wednesday, September 12, 6pm EST (BBS+6 time) to Sunday, September 16, 10pm EST (BBS+6 time) 3) Final results: September 16 after close of tournament You will need the complete package from http://s91376351.onlinehome.us/kixtart/kixgolf_a2z.zip . |
||||||||
|
|
|||||||
Jens, I am sure I have missed something but if the correct output for test 2 is 'ones', and if the correct output for test 7 is 'kixtart', wouldn't the correct output for test 4 be 'az' ? |
||||||||
|
|
|||||||
I agree with you that the output for test 4 should be 'az', but what do you mean with the output for test 2? In the ini I have the output is stated 'ones' as you say... |
||||||||
|
|
|||||||
oh, I get it now. test 2 and 7 are your examples for test 4 |
||||||||
|
|
|||||||
yeah |
||||||||
|
|
|||||||
Maybe I'm lost here now but as far as I can tell the outputs for tests 2, 4, and 7 are correct. |
||||||||
|
|
|||||||
i am suggesting that if test 2 and test 7 outputs are correct (one word output) wouldn't the correct output for test 4 be 'az' and not 'aabbbb bbbbz'? |
||||||||
|
|
|||||||
Benny is correct. I've updated the .INI file accordingly such that Test 4 will now work correctly. |
||||||||
|
|
|||||||
ok lets get this party started, 477 Running Test 1...Done Running Test 2...Done Running Test 3...Done Running Test 4...Done Running Test 5...Done Running Test 6...Done Running Test 7...Done Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/07 22:37:01.667 Processing End = 2007/09/07 22:37:01.683 Duration = 0000/00/00 00:00:00.016 KiXGolf Score = 477 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
I added an additional test: [Test 8] Dictionary=ones,about,outside,other,ideas,against,students,added,education Input=a,s Output=11 about outside ideas and my previous code failed Test 8 so I have modified my code and the result is 478: Running Test 1...Done Running Test 2...Done Running Test 3...Done Running Test 4...Done Running Test 5...Done Running Test 6...Done Running Test 7...Done Running Test 8...Done Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/08 00:29:52.288 Processing End = 2007/09/08 00:29:52.319 Duration = 0000/00/00 00:00:00.030 KiXGolf Score = 478 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Jens, shouldn't the result for test 7 be: 6 kita tart instead of 7 kixtart ? |
||||||||
|
|
|||||||
You're right, overlooked that combination. I've also added the new Test 8 into the mix after Benny's report. New ZIP file has been uploaded and is available under http://s91376351.onlinehome.us/kixtart/kixgolf_a2z.zip |
||||||||
|
|
|||||||
darn! back to the drawing board, first tee is still open. |
||||||||
|
|
|||||||
Jens, the new INI file still contains an error for test 7. The count is currently 7 and needs to be changed to 6. Quote: [Test 7] Dictionary=kixtart,kixgolf,kixforms,script,editor,fun,tart,kita,lordi,halo Input=k,t Output=7 kita tart |
||||||||
|
|
|||||||
Darn, penalty score has now been adjusted as well. So, all tests should now be valid and with the correct penalty scores. |
||||||||
|
|
|||||||
good that I didn't participate right from the beginning. would have lost my mind by now |
||||||||
|
|
|||||||
You guys already have fun ... k, downloading now |
||||||||
|
|
|||||||
Well, this is really hard to code me thinx ... |
||||||||
|
|
|||||||
I have been staring at this for an hour and don't have a clue how to start. |
||||||||
|
|
|||||||
well, I still haven't understood the task |
||||||||
|
|
|||||||
Maybe because your brain is swimming in Scotch?? |
||||||||
|
|
|||||||
Originally Posted By: Howard Bullock Maybe because your brain is swimming in Scotch?? Nah, that would be mine ... just bought a new bottle Lagavulin |
||||||||
|
|
|||||||
think hoby is correct this time. damn, it's good. |
||||||||
|
|
|||||||
ok lets try this again 340 Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/08 11:30:11.908 Processing End = 2007/09/08 11:30:11.986 Duration = 0000/00/00 00:00:00.077 KiXGolf Score = 340 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/08 12:42:06.543 Processing End = 2007/09/08 12:42:06.621 Duration = 0000/00/00 00:00:00.078 KiXGolf Score = 267 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
ok, gonna take a break now, my brain hurts |
||||||||
|
|
|||||||
Damn nice tee-off, benny! |
||||||||
|
|
|||||||
Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/08 13:51:32.171 Processing End = 2007/09/08 13:51:32.233 Duration = 0000/00/00 00:00:00.061 KiXGolf Score = 248 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Wow!! What a first and second post. Your score makes me wonder if I should just wait to see what you conjured up. Seems magical. |
||||||||
|
|
|||||||
You guys are done already? I'm already waiting for Jooel to sweep in with an initial offer of 199 |
||||||||
|
|
|||||||
I am still pondering the logic. Everything I think of is well over 300. I guess I will code something up tomorrow and see where it ends up. |
||||||||
|
|
|||||||
pfft... let's start golfing... Code: Your solution passed all tests KiXtart KiXtart Version = 4.52 KiXGolf Script = kixgolf_a2z.kix Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 798 MHz Memory = 1024 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 19:51:24.562 Processing End = 2007/09/09 19:51:24.718 Duration = 0000/00/00 00:00:00.155 KiXGolf Score = 322 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
nice start Drill |
||||||||
|
|
|||||||
Code: Your solution passed all tests KiXtart KiXtart Version = 4.52 KiXGolf Script = kixgolf_a2z.kix Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 798 MHz Memory = 1024 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 20:07:56.703 Processing End = 2007/09/09 20:07:56.828 Duration = 0000/00/00 00:00:00.125 KiXGolf Score = 280 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Code: Your solution passed all tests KiXtart KiXtart Version = 4.52 KiXGolf Script = kixgolf_a2z.kix Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 798 MHz Memory = 1024 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 20:17:46.484 Processing End = 2007/09/09 20:17:46.640 Duration = 0000/00/00 00:00:00.156 KiXGolf Score = 266 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Benny, your turn Code: Your solution passed all tests KiXtart KiXtart Version = 4.52 KiXGolf Script = kixgolf_a2z.kix Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 798 MHz Memory = 1024 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 20:19:47.750 Processing End = 2007/09/09 20:19:47.906 Duration = 0000/00/00 00:00:00.156 KiXGolf Score = 242 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
WOW! your code must be real solid to knock off so much so quick. I better get back to work, I don't want to you catch up too quick |
||||||||
|
|
|||||||
ok, lets see how long it takes you to catch up to this Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 13:22:26.887 Processing End = 2007/09/09 13:22:27.012 Duration = 0000/00/00 00:00:00.125 KiXGolf Score = 229 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
here you go Code: Your solution passed all tests KiXtart KiXtart Version = 4.52 KiXGolf Script = kixgolf_a2z.kix Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 798 MHz Memory = 1024 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 20:33:59.765 Processing End = 2007/09/09 20:33:59.890 Duration = 0000/00/00 00:00:00.125 KiXGolf Score = 222 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Dang! your KiXing my KiX |
||||||||
|
|
|||||||
Originally Posted By: Benny69 ok, lets see how long it takes you to catch up to this 10 minutes 50 seconds |
||||||||
|
|
|||||||
ehm... something's wrong with the validation, only the number is required for a valid score:
|
||||||||
|
|
|||||||
think your right Drill |
||||||||
|
|
|||||||
is your 229 still standing, though? I went back a couple of scores, my currently 'realy' working one is 274 |
||||||||
|
|
|||||||
no, i have to go back too, just not sure how far yet |
||||||||
|
|
|||||||
Drill, what did you modify to show the output without affecting your score? |
||||||||
|
|
|||||||
Nevermind, found it. I have to revert back to 233 Running Test 1...Done Result: 11 about outside ideas Running Test 2...Done Result: 4 ones Running Test 3...Done Result: 0 Running Test 4...Done Result: 7 aabbbb bbbbz Running Test 5...Done Result: 0 Running Test 6...Done Result: 9 ayrton onset Running Test 7...Done Result: 6 kita tart Running Test 8...Done Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 14:38:35.470 Processing End = 2007/09/09 14:38:35.532 Duration = 0000/00/00 00:00:00.061 KiXGolf Score = 233 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Ok, This will be my final (working) score for today. I'll see if I can find some time tomorrow-evening to get below 200 Code: Your solution passed all tests KiXtart KiXtart Version = 4.52 KiXGolf Script = kixgolf_a2z.kix Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 798 MHz Memory = 1024 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 21:43:38.875 Processing End = 2007/09/09 21:43:38.937 Duration = 0000/00/00 00:00:00.062 KiXGolf Score = 269 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
for those interested in making this modification: to see the result (output) without affecting your score. change line 73 in kixgolf_A27.kix from: Code: 'Done' to: Code: 'Done'+' Result: '+$sResult |
||||||||
|
|
|||||||
ok was able to knock 1 more off, but I think I will have to come at this another way to reduce it even more: Running Test 1...Done Result: 11 about outside ideas Running Test 2...Done Result: 4 ones Running Test 3...Done Result: 0 Running Test 4...Done Result: 7 aabbbb bbbbz Running Test 5...Done Result: 0 Running Test 6...Done Result: 9 ayrton onset Running Test 7...Done Result: 6 kita tart Running Test 8...Done Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 14:57:27.861 Processing End = 2007/09/09 14:57:27.939 Duration = 0000/00/00 00:00:00.078 KiXGolf Score = 232 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
hmm... how many days we still have? just wonder when I should start golfing. |
||||||||
|
|
|||||||
Jooel, I think you should start about Thursday, should be just enough time for you to win the private round |
||||||||
|
|
|||||||
If Jooel starts Thursday, he won't make the deadline for the private round. I've updated the script to now also output the results as suggested. I also force the result comparison to be string comparisons now. |
||||||||
|
|
|||||||
thursday there is wednesday here for about 2 hrs right, wink, wink, should be enough time right, wink, wink,... Jooel just start about 2 hrs before close, should be enough time for you, |
||||||||
|
|
|||||||
last one for the night: Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows Vista Ultimate Edition CPU = Intel(R) Pentium(R) D CPU 2.80GHz Speed = 2792 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/09 16:23:35.694 Processing End = 2007/09/09 16:23:35.756 Duration = 0000/00/00 00:00:00.061 KiXGolf Score = 231 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
I don't get it ... Test 7 says: Quote: Dictionary=kixtart,kixgolf,kixforms,script,editor,fun,tart,kita,lordi,halo Input=k,t Output=6 kita tart but tart is in sequence BEFORE kita, and the rules state "finding a sequence of one or more words (we’ll refer to them as W1, W2, . . . , Wn) where the first word W1 starts with C1 and the last word Wn ends with C2." This would be a reverse sequence Please clarify edit... So, the order of sequence doesn't necessarily refelct the order of the dictionary, right? edit 2 ... atm I pass 3 of 8 Tests with only 132 strokes, but got the feeling that I may add another 300 to pass all |
||||||||
|
|
|||||||
ROFL, I seem to get what I predicted ... in the mean time I pass 5 of 8 tests with a score of 328. Oh yeah, I seem to be persistently "against students" |
||||||||
|
|
|||||||
Update! In the mean time I manage to pass 5 of 8 tests with score of 302 Still, I have something "against students" |
||||||||
|
|
|||||||
It's getting weird here ... passing 6 of 8 Tests with a score of 294, still there are resentments "against students" |
||||||||
|
|
|||||||
Jochen, I’m not a great coder but it looks like there must be some correlation between lower score and higher failures |
||||||||
|
|
|||||||
Well, to prove this presumption (it is in fact lower score with less failure), here is my tee-off
Yeeeeehaw |
||||||||
|
|
|||||||
Nice Tee Off Jochen |
||||||||
|
|
|||||||
Thanx Dale, yours is better though... small cosmetics to mine before I go to sleep over it
|
||||||||
|
|
|||||||
Sleeping didn't gain much... only 2 less Running Test 1...Done...Result: 11 about outside ideas |
||||||||
|
|
|||||||
funny that I didn't see this before ... Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows 2000 Professional CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 504 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/11 10:28:01.000 Processing End = 2007/09/11 10:28:01.015 Duration = 0000/00/00 00:00:00.014 KiXGolf Score = 282 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Not much going on here atm ... and I don't see how to shave another 52 strokes from my code edit: tbh, I can't seem to shave even one more stroke |
||||||||
|
|
|||||||
1 more: Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 3.20GHz Speed = 3200 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/11 07:39:44.351 Processing End = 2007/09/11 07:39:44.382 Duration = 0000/00/00 00:00:00.031 KiXGolf Score = 230 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
and 1 more: Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 3.20GHz Speed = 3200 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/11 07:42:51.515 Processing End = 2007/09/11 07:42:51.547 Duration = 0000/00/00 00:00:00.031 KiXGolf Score = 229 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
well done! Think mine hasn't got any more potential to be shortened. Maybe I should start a new one from scratch ... |
||||||||
|
|
|||||||
thanks Jochen, i'm not sure i can go much farther with mine |
||||||||
|
|
|||||||
ok, a little farther, 2 more Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 3.20GHz Speed = 3200 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/11 07:56:20.130 Processing End = 2007/09/11 07:56:20.161 Duration = 0000/00/00 00:00:00.030 KiXGolf Score = 227 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Damn benny, you're one fire! I've tried a completely different technique yesterday, but even with very sneaky code I couldn't get below 260. I'm very curious to your approach! |
||||||||
|
|
|||||||
Thanks Drill, I have smacked my head against the wall for 3 days trying to come up with more than one way to even do this and this is all I can come up with. So I am curious to see what you and Jochen have come up with. |
||||||||
|
|
|||||||
Originally Posted By: DrillSergeant Damn benny, you're one fire! I've tried a completely different technique yesterday, but even with very sneaky code I couldn't get below 260. I'm very curious to your approach! You should post the score then as your last scoring post is 269 |
||||||||
|
|
|||||||
k, I'm pretty sleepy already, but let's see... |
||||||||
|
|
|||||||
uhm. the if no solution found case is gonna bloat my select-endselect! |
||||||||
|
|
|||||||
k, time to head to bed. really. it would be really cool to play with you guys, but second week in row with average work hours reaching 16... well, it kinda sucks me dry. anyhow, to make the 1 point for participating, I announce that my code managed to fail all the 8 tests! Your solution failed 8 of 8 tests. |
||||||||
|
|
|||||||
and just to note on the design, when I started with this, I came up with 3 totally different designs and seems that the one I took will easily reach some 700 chars before giving any results. but I hate the straightforward mathematic approach so much, I will try to make either one of the others to work before the deadline. If I can come up with the spare time, that is. |
||||||||
|
|
|||||||
Jooel you are the man, glad you made some time to play a little. We all understand what it is like to feel like all you do is work, sorry dude. If you have time we all know you will pull a rabbit out of a hat and sweep the scores. |
||||||||
|
|
|||||||
Jooel: With a 16 hour work-day you still have another 8 left for KiXtart and drinks ;-) |
||||||||
|
|
|||||||
Originally Posted By: Jooel but second week in row with average work hours reaching 16... well, it kinda sucks me dry. Wow, I hear that. Same here lately. |
||||||||
|
|
|||||||
Sleep is overrated :P |
||||||||
|
|
|||||||
in the mean time ... with mucho struggle Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows 2000 Professional CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 504 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 11:03:02.234 Processing End = 2007/09/12 11:03:02.250 Duration = 0000/00/00 00:00:00.016 KiXGolf Score = 281 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
just for the record:
|
||||||||
|
|
|||||||
I keep thinking that once you guys see this code your gonna shave a few more off and I am gonna loose out, so I keep pounding my head to come up with just a few more. Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 3.20GHz Speed = 3200 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 07:50:01.746 Processing End = 2007/09/12 07:50:01.778 Duration = 0000/00/00 00:00:00.031 KiXGolf Score = 224 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
Are you, by any chance, "a student"? You know my persistent resentment against them And you think this ridiculously short code is to be shorten more ??? |
||||||||
|
|
|||||||
Jochen, you scare me the most because our code, so often is so close and I just know that is the case now. About 3 hrs before close your gonna have a lightbulb and clean my plow. |
||||||||
|
|
|||||||
funny enough, your last reply seem to have loosen a synapsis here and the bulb went on...
|
||||||||
|
|
|||||||
SEE! Dang it! |
||||||||
|
|
|||||||
damn, overslept today. got my 3G mobile card today so am able to play while driving. should get better usage of my time and perhaps, a working solution :p |
||||||||
|
|
|||||||
some more... Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows 2000 Professional CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 504 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 15:50:01.484 Processing End = 2007/09/12 15:50:01.500 Duration = 0000/00/00 00:00:00.016 KiXGolf Score = 244 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Your gonna make me fight for it aren't you Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) D CPU 3.20GHz Speed = 3200 MHz Memory = 2048 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 08:54:21.059 Processing End = 2007/09/12 08:54:21.090 Duration = 0000/00/00 00:00:00.030 KiXGolf Score = 218 Thank you for participating in KiXtart Golf! Press any key to continue... |
||||||||
|
|
|||||||
2 more ... now it's getting hard Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows 2000 Professional CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 504 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 15:55:43.875 Processing End = 2007/09/12 15:55:43.890 Duration = 0000/00/00 00:00:00.014 KiXGolf Score = 242 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
Yay |
||||||||
|
|
|||||||
Dawg! |
||||||||
|
|
|||||||
Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows 2000 Professional CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 504 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 16:05:18.796 Processing End = 2007/09/12 16:05:18.812 Duration = 0000/00/00 00:00:00.015 KiXGolf Score = 236 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
pfft... Running Test 1...Done...Result: 11 about outside ideas Running Test 2...Done...Result: 4 ones Running Test 3...Done...Result: 0 Running Test 4...Done...Result: 7 aabbbb bbbbz Running Test 5...Done...Result: 0 Running Test 6...Done...Result: 9 ayrton onset Running Test 7...Done...Result: 6 kita tart Running Test 8...Done...Result: 11 about outside ideas Your solution passed all tests Your solution passed all tests KiXtart KiXtart Version = 4.53 KiXGolf Script = kixgolf_A2Z.kix Computer OS = Windows 2000 Professional CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz Speed = 2793 MHz Memory = 504 MB KiXGolf Scoring Engine Scoring Engine = 3.3 KiXtart Golf Score Tournament = A-to-Z Processing Start = 2007/09/12 16:10:14.765 Processing End = 2007/09/12 16:10:14.781 Duration = 0000/00/00 00:00:00.016 KiXGolf Score = 234 Thank you for participating in KiXtart Golf! |
||||||||
|
|
|||||||
ERRRRR! |
||||||||
|
|
|||||||
No worries mate, seem to be stuck again... maybe I should just get downstairs fetch another malt |
||||||||
|
|
|||||||
uhm. too tired to really see my logical errors. already at 500 shots and 8/8 failing guess this is the first round for a while that I won't be managing. damn. sorry guys for letting you down! |
||||||||
|
|
|||||||
its cool man, maybe you can work on the public round |
||||||||
|
|
|||||||
Should be over by now, no ? It's getting late here |
||||||||
|
|
|||||||
yeah, think your right, jens must be running late |
||||||||
|
|
|||||||
K, PM'ing Jens my 234 code now for you guys to have fun with. Going to bed now myself ... g'night |
||||||||
|
|
|||||||
Private round is closed now. Please post your code in the public round. |
||||||||
|
|
|||||||
Final scores of the private round: Code: Benny69 ........... 218 (5+1+1=7 points) Jochen ............ 234 (4+1+1=6 points) DrillSergeant ..... 267 (3+1+1=5 points) Jooel ............. N/A (1 =1 point) |
||||||||
|
|
|||||||
hmm... |