|
KiXgolf: Happy Numbers
|
|
UPDATE I was informed by one of the participants that the name of the function penalizes certain potential approaches. As it is not my intention, I will change the name of the function that is being called to a one-character name of A(). While technically this is not a rule-change, I do realize that it can potentially affect the outcome. I will therefore recognize two first-round winners, one for the tightest code before the function name change, and a second one, if necessary, for the tightest code after the function name change. I will also notify all participants via PM of this change.
The updated package is available at http://s91376351.onlinehome.us/kixtart/kixgolf_happy_numbers.zip
============= The Challenge =============
Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the squares of the digits of S1 be represented by S2 and so on. If Si = 1 for some i >= 1, then the original integer S0 is said to be Happy number. A number which is not happy is called Unhappy number.
For example 7 is a Happy number since 7 -> 49 -> 97 -> 130 -> 10 -> 1 and 4 is an unhappy number since 4 -> 16 -> 37 -> 58 -> 89 -> 145 -> 42 -> 20 -> 4.
A download is available at http://s91376351.onlinehome.us/kixtart/kixgolf_happy_numbers.zip
============= Specification =============
Determine whether the numbers provided in the input is a happy or unhappy number.
============= Inputs & Outputs =============
Input : A single positive integer number Output: 0 if input is an unhappy number and 1 if the number is a happy number
======= Scoring =======
All provided integers must be correctly categorized in order to have a valid Happy Number UDF and to have the KiXgolf score count.
============= 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 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 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.
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.
======== Deadlines ========
Private coding starts Friday, August 26, 2005, 6pm EST Private coding ends Wednesday, August 31, 2005, 6pm EST Public coding start Wednesday, August 31, 2005, 6pm EST Public coding ends Monday, September 5, 2005, 6pm EST
============ Test program ============
A test program is provided to help screen entries and to provide the Golf Score. Any program that passes the test program can be submitted. If you are surprised that your solution passed the test program, 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[/CODE]for a score of 45.
Another solution is: [CODE]DO $b=$b+1 if $a[$b]>0 $c=$c+1 endif UNTIL $b>(UBOUND($a)+1)[/CODE]for a score of 53.
Better approach: Code sample 1
================================================================ KiXtart GOLF - The Rules ================================================================
- The goal of KiXtart Golf is to score the lowest strokes.
- Strokes are all characters in a piece of code except whitespace characters, unless the whitespace character is necessary for the line of code to work. Therefore, carriage returns and line feeds do not count or spaces in between the '=' sign when assigning variables, e.g. '$a = $b' scores 5.
- Code can be constructed any way you like, as long as it is syntactically correct with KiXtart.
- The final solution MUST pass all test scripts that accompagny the KiXtart golf challenge.
- The use of '$' as a variable is allowed.
- In case of questions about a particular way to count the KiXtart Golf Challenge organizer has the last call.
- During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player.
- During the public coding phase, code should be posted, reused, and borrowed from other players.
- The test script contains the official KiXgolf scoring engine
|
Lonkero
|
(KiX Master Guru)
|
2005-08-27 04:44 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
yehaa, finally. so many hours wasted waiting. just hope it was worth
|
Lonkero
|
(KiX Master Guru)
|
2005-08-27 04:46 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
huh, happy happy or unhappy happy?
|
Lonkero
|
(KiX Master Guru)
|
2005-08-27 05:10 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
lets translate this to a formula please.
Quote:
Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the squares of the digits of S1 be represented by S2 and so on. If Si = 1 for some i >= 1, then the original ...
what I read hear does not match your lines of results at all except that 7x7 is 49.
|
Lonkero
|
(KiX Master Guru)
|
2005-08-27 05:17 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
k, I found an article that has some formula and explanation. I shall read that one.
|
|
Re: KiXgolf: Happy Numbers
|
|
7 -> (7x7)=49 -> (4x4+9x9)=97 -> (9x9+7x7)=130 -> (1x1+3x3+0x0)=10 -> 1
|
Allen
|
(KiX Supporter)
|
2005-08-27 06:50 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Okay... I must be dreaming or way over simplifying...
Here's my first attempt at playing KixGolf!
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 00:27:00.015 Processing End = 2005/08/27 00:27:00.031 Duration = 0000/00/00 00:00:00.015 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 147
Now... can I make it any smaller?
|
Chris S.
|
(MM club member)
|
2005-08-27 06:50 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I have a solution. I am happy.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 01:04:36.750 Processing End = 2005/08/27 01:04:36.796 Duration = 0000/00/00 00:00:00.045 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 208 Thank you for participating in KiXtart Golf!
Sorry for the delay in posting the score. I had to download the scoring engine.
Since Allen and I had the same time on our solution do we tie for first on this round?
|
Allen
|
(KiX Supporter)
|
2005-08-27 07:08 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 00:43:31.718 Processing End = 2005/08/27 00:43:31.734 Duration = 0000/00/00 00:00:00.016 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 146 Thank you for participating in KiXtart Golf!
-1 and I doubt I have anywhere else to go... Just betting my code to be 50 stokes higher than Lonks... I need a handicap to compete
|
Chris S.
|
(MM club member)
|
2005-08-27 07:54 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I'm getting there...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 01:34:14.812 Processing End = 2005/08/27 01:34:14.843 Duration = 0000/00/00 00:00:00.030 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 178 Thank you for participating in KiXtart Golf!
|
Allen
|
(KiX Supporter)
|
2005-08-27 07:59 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I didn't know it was a race to post working code... COOL! So what's the prize?
|
Chris S.
|
(MM club member)
|
2005-08-27 08:02 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 01:42:20.734 Processing End = 2005/08/27 01:42:20.765 Duration = 0000/00/00 00:00:00.030 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 165 Thank you for participating in KiXtart Golf!
|
Chris S.
|
(MM club member)
|
2005-08-27 08:43 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Getting closer...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 02:22:43.328 Processing End = 2005/08/27 02:22:43.359 Duration = 0000/00/00 00:00:00.031 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 152 Thank you for participating in KiXtart Golf!
|
Chris S.
|
(MM club member)
|
2005-08-27 08:58 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Fah! I'm done for the night.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 02:35:54.546 Processing End = 2005/08/27 02:35:54.578 Duration = 0000/00/00 00:00:00.031 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 151 Thank you for participating in KiXtart Golf!
|
Chris S.
|
(MM club member)
|
2005-08-27 09:45 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Ok, I lied. I wasn't done.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 03:25:29.593 Processing End = 2005/08/27 03:25:29.625 Duration = 0000/00/00 00:00:00.031 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 141 Thank you for participating in KiXtart Golf!
|
|
Re: KiXgolf: Happy Numbers
|
|
I think Jooel is still reading the rules
|
Lonkero
|
(KiX Master Guru)
|
2005-08-27 02:39 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
lol, no. I went to bed. all the waiting for the start worn me down and I couldn't keep my eyes open anymore. actually, I think I head back to bed now...
|
Chris S.
|
(MM club member)
|
2005-08-27 03:08 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Sleep away, Lonk. You snooze, you lose.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 08:48:16.687 Processing End = 2005/08/27 08:48:16.703 Duration = 0000/00/00 00:00:00.015 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 135 Thank you for participating in KiXtart Golf!
|
Lonkero
|
(KiX Master Guru)
|
2005-08-27 04:02 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmm... if you really have working code this fast this small... the challenge was too simple. hmm...
I haven't had any time to think it over or start scripting as have some IRL stuff to intend.
what would you boys say if I was to skip this tournament? seems like you had a fight on your hands without me
|
|
Re: KiXgolf: Happy Numbers
|
|
Jooel: So, you're willing to loose some points for the final year-end score and thus more or less forfeit a chance on first place?
|
maciep
|
(Korg Regular)
|
2005-08-27 08:15 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
First Run...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 13:55:19.125 Processing End = 2005/08/27 13:55:19.203 Duration = 0000/00/00 00:00:00.078 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 158
|
maciep
|
(Korg Regular)
|
2005-08-27 08:28 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 14:08:37.468 Processing End = 2005/08/27 14:08:37.562 Duration = 0000/00/00 00:00:00.093 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 129
|
maciep
|
(Korg Regular)
|
2005-08-27 08:36 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXGolf Score = 126
|
Allen
|
(KiX Supporter)
|
2005-08-27 09:00 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Jens, I am passing your tests, but don't think I should be for UDF2. Take the following results:
Code:
number to test:HappyUDF1Result:HappyUDF2Result 0:0:0 1:1:1 2:0:0 3:0:1 4:0:0 5:0:0 6:0:0 7:1:1 8:0:0 9:0:0 10:1:1 11:0:0 12:0:1 13:1:1 14:0:0 15:0:0
3 and 12 are not happy numbers (despite my what my code says ) but still passes the tests...
|
|
Re: KiXgolf: Happy Numbers
|
|
Just starting...
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1798 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Number Processing Start = 2005/08/27 14:42:02.272 Processing End = 2005/08/27 14:42:02.312 Duration = 0000/00/00 00:00:00.040 # Tests Run = 56 # Tests Passed = 56 # Tests Failed = 0 Result = passed KiXGolf Score = 157
Thank you for participating in KiXtart Golf!
|
maciep
|
(Korg Regular)
|
2005-08-27 09:20 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Mine didn't work for those number either Allen...actually got stuck in a loop. After making some adjustments
KiXGolf Score = 149
|
Bryce
|
(KiX Supporter)
|
2005-08-27 09:55 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
my first swing
Code:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 2.66GHz Speed = 2657 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 14:37:21.024 Processing End = 2005/08/27 14:37:21.289 Duration = 0000/00/00 00:00:00.264 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 233
Thank you for participating in KiXtart Golf!
|
Bryce
|
(KiX Supporter)
|
2005-08-27 10:10 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmm..
Code:
Result = passed KiXGolf Score = 202
need to rethink and come at it from a different angle.
|
Bryce
|
(KiX Supporter)
|
2005-08-27 10:19 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Code:
Result = passed KiXGolf Score = 195
|
Bryce
|
(KiX Supporter)
|
2005-08-27 10:26 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Code:
Result = passed KiXGolf Score = 183
bah!! i got to run....
|
Bryce
|
(KiX Supporter)
|
2005-08-27 10:48 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
181
|
Bryce
|
(KiX Supporter)
|
2005-08-27 10:57 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
make me stop... please.... 172
|
Bryce
|
(KiX Supporter)
|
2005-08-27 11:07 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Code:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 2.66GHz Speed = 2657 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 15:50:05.196 Processing End = 2005/08/27 15:50:05.227 Duration = 0000/00/00 00:00:00.030 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 145
|
Witto
|
(MM club member)
|
2005-08-28 01:31 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Just for fun: From 239, via 169, to 165 Do not now if I will do any better
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.00GHz Speed = 2992 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 01:06:29.826 Processing End = 2005/08/28 01:06:29.841 Duration = 0000/00/00 00:00:00.014 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 165
Thank you for participating in KiXtart Golf!
Going to sleep now
|
Witto
|
(MM club member)
|
2005-08-28 01:44 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
Result = passed KiXGolf Score = 161
|
Witto
|
(MM club member)
|
2005-08-28 01:51 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
Result = passed KiXGolf Score = 160
|
|
Re: KiXgolf: Happy Numbers
|
|
Result = passed KiXGolf Score = 149
|
Les
|
(KiX Master)
|
2005-08-28 02:13 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
LOL #145912 - 27/08/2005 18:31
Quote:
Going to sleep now
#145913 - 27/08/2005 18:44 #145914 - 27/08/2005 18:51
Short sleep
|
|
Re: KiXgolf: Happy Numbers
|
|
Result = passed KiXGolf Score = 143
|
Bryce
|
(KiX Supporter)
|
2005-08-28 03:29 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Code:
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2004/08/27 20:03:53.321 Processing End = 2004/08/27 20:03:53.381 Duration = 0000/00/00 00:00:00.059 # Tests Run = 55 # Tests Passed = 55 # Tests Failed = 0 Result = passed KiXGolf Score = 143
hehe
|
|
Re: KiXgolf: Happy Numbers
|
|
Result = passed KiXGolf Score = 133
Still 7 strokes to high
|
krabourn
|
(Hey THIS is FUN)
|
2005-08-28 04:03 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I am not sure how I can get this smaller. I will need to rethink how I am doing this.
Quote:
KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium III Speed = 996 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 23:07:12.791 Processing End = 2005/08/27 23:07:12.831 Duration = 0000/00/00 00:00:00.040 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 143
Thank you for participating in KiXtart Golf!
|
|
Re: KiXgolf: Happy Numbers
|
|
Result = passed KiXGolf Score = 131
Still to trim 5 strokes...
I added 3 & 12 before Jens. My code still works properly.
|
|
Re: KiXgolf: Happy Numbers
|
|
As per Allen's suggestion I have added the numbers 3 and 12 as Unhappy Numbers to the test suite. The updated suite is available at http://s91376351.onlinehome.us/kixtart/kixgolf_happy_numbers.zip
|
Bryce
|
(KiX Supporter)
|
2005-08-28 04:44 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
Result = passed KiXGolf Score = 131
Still to trim 5 strokes...
I added 3 & 12 before Jens. My code still works properly.
who you trying to beat?
|
|
Re: KiXgolf: Happy Numbers
|
|
maciep states he has 126.
|
Bryce
|
(KiX Supporter)
|
2005-08-28 04:49 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
then he said that his 126 didnt work, right?
|
|
Re: KiXgolf: Happy Numbers
|
|
woohoo!
Thanks I didn't see his next post.
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1798 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/27 22:14:22.345 Processing End = 2005/08/27 22:14:22.395 Duration = 0000/00/00 00:00:00.050 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 131
Thank you for participating in KiXtart Golf!
|
|
Re: KiXgolf: Happy Numbers
|
|
Result = passed KiXGolf Score = 130
Result = passed KiXGolf Score = 129
Result = passed KiXGolf Score = 126
|
Witto
|
(MM club member)
|
2005-08-28 08:33 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Was it about lowest duration?
Quote:
KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.00GHz Speed = 2992 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 08:14:08.310 Processing End = 2005/08/28 08:14:08.310 Duration = 0000/00/00 00:00:00.000 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 150
|
Witto
|
(MM club member)
|
2005-08-28 08:48 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
If it was permitted to rename the udf to "H", wouldn't that lower the scores at least with 22?
|
Witto
|
(MM club member)
|
2005-08-28 09:04 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
146 (without renaming the UDF )
|
|
Re: KiXgolf: Happy Numbers
|
|
You are not alllowed to alter Jens' program that calls the UDF. So renaming the UDF would just fail as it would not execute. Everyone has the same restrictions.
|
Allen
|
(KiX Supporter)
|
2005-08-28 09:48 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Ugh! I'm done with this! Wasted too much time already... and for what... 4 f'n strokes!... I'm going back to playing games...where's the 'Kid when you need him?
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 03:25:54.234 Processing End = 2005/08/28 03:25:54.234 Duration = 0000/00/00 00:00:00.000 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 142 Thank you for participating in KiXtart Golf!
|
Allen
|
(KiX Supporter)
|
2005-08-28 09:50 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
By the way... Witto... I bet our UDFs are almost identical... your scores have been matching mine and duration is the same too.
|
Chris S.
|
(MM club member)
|
2005-08-28 01:40 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Score with the new test file...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 07:19:19.718 Processing End = 2005/08/28 07:19:19.750 Duration = 0000/00/00 00:00:00.031 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 134 Thank you for participating in KiXtart Golf!
|
Chris S.
|
(MM club member)
|
2005-08-28 02:07 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 07:46:14.187 Processing End = 2005/08/28 07:46:14.218 Duration = 0000/00/00 00:00:00.030 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 132 Thank you for participating in KiXtart Golf!
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 04:47 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
the test code is wrong: Code:
case val($sInputResult)=val($sOutput)
the rules say to return 0 or 1. with this twist in the tester, even nul output is accepted. take the vals out, thanks.
[edit] actually, guess it should be: Code:
case $sInputResult = $sOutput and vartype($sInputResult) = 3
[edit2] also this needs to be fixed: $sInputResult=''+HappyNumbers(val($sInput))
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 05:04 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
so... not really really sure about the results. as I'm not sure about my formula but, it got passed Code:
KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 17:45:50.805 Processing End = 2005/08/28 17:45:50.965 Duration = 0000/00/00 00:00:00.159 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 185
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 05:11 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmm... my approach is wrong. can't seem to get below 167
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 05:13 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
k, new approach new number.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 17:55:46.311 Processing End = 2005/08/28 17:55:46.391 Duration = 0000/00/00 00:00:00.080 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 138
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 05:31 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
is there test for 0 input?
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 18:12:20.200 Processing End = 2005/08/28 18:12:20.330 Duration = 0000/00/00 00:00:00.130 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 135
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 05:44 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
133 129
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 05:54 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I hear a rumour about changing the rules. if they are to be changed during the race, everyone participating must have a say in it.
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 06:39 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 19:19:52.046 Processing End = 2005/08/28 19:19:52.147 Duration = 0000/00/00 00:00:00.100 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 125
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 06:49 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I just realised, I am in the lead!
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 07:04 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 19:45:59.330 Processing End = 2005/08/28 19:45:59.410 Duration = 0000/00/00 00:00:00.080 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 121
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Shawn
|
(KiX Supporter)
|
2005-08-28 07:34 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
just fyi - im in the game at 174 ...
|
|
Re: KiXgolf: Happy Numbers
|
|
Getting closer...
Result = passed KiXGolf Score = 122
|
|
Re: KiXgolf: Happy Numbers
|
|
WooHoo !!
# Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 120
|
Shawn
|
(KiX Supporter)
|
2005-08-28 07:54 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
me too = 128
|
Shawn
|
(KiX Supporter)
|
2005-08-28 07:57 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Duration = 0000/00/00 00:00:00.019 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 120
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 08:01 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
me too!
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 20:42:28.874 Processing End = 2005/08/28 20:42:28.954 Duration = 0000/00/00 00:00:00.080 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 120
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Allen
|
(KiX Supporter)
|
2005-08-28 08:11 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
120
...wow!
I can't wait to see how you guys did it.
So who's going to find that magic stroke to take the lead?
|
Lonkero
|
(KiX Master Guru)
|
2005-08-28 09:48 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
well, hoby is in the lead as he first arrived at the ladder 120.
|
Allen
|
(KiX Supporter)
|
2005-08-28 11:05 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I'm not sure if my last post made it look like I got a 120 score or not... but just for clarification... I didn't. I'm stuck at 142.
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 12:18 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 00:59:33.974 Processing End = 2005/08/29 00:59:34.054 Duration = 0000/00/00 00:00:00.079 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 119
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Shawn
|
(KiX Supporter)
|
2005-08-29 12:28 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmmm, you running this on some kinda lindows super computer ? ;0)
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 12:31 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
just my brains man...
|
Bryce
|
(KiX Supporter)
|
2005-08-29 12:32 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
WHOOT!!!
Code:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3000+ Speed = 2009 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/28 17:13:11.038 Processing End = 2005/08/28 17:13:11.054 Duration = 0000/00/00 00:00:00.015 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 114
Code:
Function HappyNumbers($) $happynumbers=readprofilestring('.\kixgolf_happy_numbers.ini','Happy Numbers',$) EndFunction
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 12:33 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hey, this is a private round!
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 03:16 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
k, as nobody wants to fight, I head for bed. perhaps I dream up some nice new cheat
|
|
Re: KiXgolf: Happy Numbers
|
|
Maybe I should disqualify Bryce for cheating as he did post a potential solution I'll make sure that the next round will have an unmanageably long file name Also, the rules already take care of this via
Quote:
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.
And I see that Jooel is his usual self and raises to the challenge. BTW, I'll keep the VALs in place because an intrinsic conversion of a NULL to a zero would happen anyway when comparing the function result against the expected result. I also do not have the zero as a test case, thus from an test suite eval point of view, there's no damage done.
Regarding the rumor of changing the rules in mid-race, I was informed by one of the participants that the name of the function penalizes certain potential approaches. As it is not my intention, I will change the name of the function that is being called to a one-character name of A(). While technically this is not a rule-change, I do realize that it can potentially affect the outcome. I will therefore recognize two first-round winners, one for the tightest code before the function name change, thus anything posted before this one, and a second one, if necessary, for the tightest code after the function name change. I will also notify all participants via PM of this change.
The updated package is available at http://s91376351.onlinehome.us/kixtart/kixgolf_happy_numbers.zip
|
Shawn
|
(KiX Supporter)
|
2005-08-29 05:21 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
SO what are we supposed to do ? Download the new one and repost our scores ?
|
|
Re: KiXgolf: Happy Numbers
|
|
You can either download the new package or rename your function from HappyNumbers() to A(). The old scores will stay as is but you can post a new set of score with the changed function name as this will definitely reduce the KiXgolf score.
I think that this is a "fair and balanced"TM approach.
|
Shawn
|
(KiX Supporter)
|
2005-08-29 05:34 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXGolf Score = 98
|
Allen
|
(KiX Supporter)
|
2005-08-29 07:05 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
So let me get this straight... this new UDF name removes 22 strokes... so 142-22=120... and EVEN with that I still don't beat Lonk's pre -22 code. GAWD!
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 00:41:43.515 Processing End = 2005/08/29 00:41:43.531 Duration = 0000/00/00 00:00:00.016 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 120
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 10:25 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmm... jens, this is not the first time the penalizing occurs but, hey as long as I stay in the lead, I don't cry.
we also did quite extensive testing on 1 char udf names with hoby and never got it short enough... so, happy trying everyone.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 11:05:58.252 Processing End = 2005/08/29 11:05:58.312 Duration = 0000/00/00 00:00:00.059 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 97
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 10:35 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
k, since this is ON, first score that uses short udf name advantage:
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 11:16:03.613 Processing End = 2005/08/29 11:16:03.693 Duration = 0000/00/00 00:00:00.080 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 96
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 10:39 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
and lets keep it coming...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 797 MHz Memory = 376 MB KiXGolf Scoring Engine Scoring Engine = 3.0.3 KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 11:20:31.428 Processing End = 2005/08/29 11:20:31.508 Duration = 0000/00/00 00:00:00.080 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 92 Thank you for participating in KiXtart Golf! Press any key to continue...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 12:30 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
so, Patrick, you going to take part or are you just going to lurk around?
and Shawn you have been so quiet for so long that you are gonna burn your brains soon...
|
|
Re: KiXgolf: Happy Numbers
|
|
Crap Lonk.
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1798 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 06:25:37.574 Processing End = 2005/08/29 06:25:37.625 Duration = 0000/00/00 00:00:00.050 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 95
Thank you for participating in KiXtart Golf!
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 12:47 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
oh, good morning to you too. you wanna some coffee? I'm just going to make some and I bet I could spare some...
|
MightyR1
|
(MM club member)
|
2005-08-29 01:55 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Didn't have time this weekend. So looked this morning and came up with this:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows Server 2003 CPU = Intel(R) Xeon(TM) CPU 2.80GHz Speed = 2787 MHz Memory = 2048 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 13:34:20.095 Processing End = 2005/08/29 13:34:20.579 Duration = 0000/00/00 00:00:00.483 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 151
Thank you for participating in KiXtart Golf!
|
MightyR1
|
(MM club member)
|
2005-08-29 01:58 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Make that 148
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 02:11 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
you can do better than that
do you have sleep lines in your code or why it takes so long to process?
|
MightyR1
|
(MM club member)
|
2005-08-29 02:13 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
147
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 02:23 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
btw, are you hiding in the server room?
|
MightyR1
|
(MM club member)
|
2005-08-29 02:57 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
LOL,
changed work from the 1st of july. Now working on a TS farm till the current SysAdmin leaves...
|
Bryce
|
(KiX Supporter)
|
2005-08-29 03:37 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
Maybe I should disqualify Bryce for cheating as he did post a potential solution I'll make sure that the next round will have an unmanageably long file name Also, the rules already take care of this via
Quote:
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.
hehehe!
I posted that code knowing full well that if someone was to use it as a "solution" it would be against the spirit of the game.
|
Shawn
|
(KiX Supporter)
|
2005-08-29 06:23 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXGolf Score = 91
|
maciep
|
(Korg Regular)
|
2005-08-29 07:05 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
did some reading...think i'll be able to jump back into this now. Well not now but after work.
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 07:09 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
damn it Shawn. I was just getting to bed!
|
Shawn
|
(KiX Supporter)
|
2005-08-29 07:16 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I think Jooel should be disqualified - he's under age.
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 07:42 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
"Jooel is undergoing aging process. we others are fossiles"
eh, what you said?
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 09:17 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
shawn, I insist on seeing your kixgolf result page!
KiXtart Version = 4.50
KiXGolf Script = kixgolf_happy_numbers.kix
Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 797 MHz
Memory = 376 MB
KiXGolf Scoring Engine
Scoring Engine = 3.0.3
KiXtart Golf Score
Tournament = KiXtart Golf: Happy Numbers
Processing Start = 2005/08/29 21:28:49.421
Processing End = 2005/08/29 21:28:49.501
Duration = 0000/00/00 00:00:00.080
# Tests Run = 57
# Tests Passed = 57
# Tests Failed = 0
Result = passed
KiXGolf Score = 91
Thank you for participating in KiXtart Golf!
Press any key to continue...
|
Shawn
|
(KiX Supporter)
|
2005-08-29 09:42 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 15:21:33.279 Processing End = 2005/08/29 15:21:33.309 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 91
|
Lonkero
|
(KiX Master Guru)
|
2005-08-29 09:56 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmm...
|
Shawn
|
(KiX Supporter)
|
2005-08-30 12:00 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmmm ...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 12:05 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
you have no idea how extensive sh*t (officially, R&D) I've been through these couple of last hours. damn. head hurts.
|
maciep
|
(Korg Regular)
|
2005-08-30 01:27 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
feeling a little better now...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 19:07:33.187 Processing End = 2005/08/29 19:07:33.234 Duration = 0000/00/00 00:00:00.046 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 118
|
maciep
|
(Korg Regular)
|
2005-08-30 01:55 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Noticed that we could change the function name to "A()". Feeling much much better
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 19:34:33.125 Processing End = 2005/08/29 19:34:33.203 Duration = 0000/00/00 00:00:00.077 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 90
|
jtokach
|
(Seasoned Scripter)
|
2005-08-30 01:55 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Code:
KiXtart KiXtart Version = 4.23 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium III Speed = 696 MHz Memory = 256 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 19:32:28.780 Processing End = 2005/08/29 19:32:28.940 Duration = 0000/00/00 00:00:00.160 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 112 Thank you for participating in KiXtart Golf!
Still 21 strokes off. I don't think I can get it down any further... String parsing loop is killing me.
|
Shawn
|
(KiX Supporter)
|
2005-08-30 02:00 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 19:43:17.649 Processing End = 2005/08/29 19:43:17.679 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 89
|
|
Re: KiXgolf: Happy Numbers
|
|
You guys are making me loose my mind.
|
maciep
|
(Korg Regular)
|
2005-08-30 03:07 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 20:48:30.953 Processing End = 2005/08/29 20:48:31.015 Duration = 0000/00/00 00:00:00.062 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 89
|
Shawn
|
(KiX Supporter)
|
2005-08-30 03:27 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Your good kid. Your very good...
|
maciep
|
(Korg Regular)
|
2005-08-30 03:38 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
right back atcha
I knew The Lonkenizer would be a good investment...
|
maciep
|
(Korg Regular)
|
2005-08-30 03:46 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I'd just like to thank Ruud for kix's extremely forgiving nature.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 21:27:03.562 Processing End = 2005/08/29 21:27:03.750 Duration = 0000/00/00 00:00:00.187 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 88
|
Shawn
|
(KiX Supporter)
|
2005-08-30 03:50 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 21:33:26.462 Processing End = 2005/08/29 21:33:26.492 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 87
Thank you for participating in KiXtart Golf!
|
maciep
|
(Korg Regular)
|
2005-08-30 04:03 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Did ruud give you a special magical version of kix?
|
Shawn
|
(KiX Supporter)
|
2005-08-30 04:05 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
4.51 Beta 1 rocks ;0)
|
Shawn
|
(KiX Supporter)
|
2005-08-30 04:22 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
You know what's got me worried Erik ... your getting close to that magical evil post count ...
|
maciep
|
(Korg Regular)
|
2005-08-30 04:29 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Is that why you're waiting to post your 76?
|
Allen
|
(KiX Supporter)
|
2005-08-30 04:36 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Still not close to you guys... but better for me...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 22:16:04.781 Processing End = 2005/08/29 22:16:04.796 Duration = 0000/00/00 00:00:00.014 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 107 Thank you for participating in KiXtart Golf!
|
Shawn
|
(KiX Supporter)
|
2005-08-30 04:38 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Why Erik, whatever do you mean. I'm sitting on an 87.
|
maciep
|
(Korg Regular)
|
2005-08-30 04:45 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Sitting there waiting to hit enter I'm sure
Allen, this is golf so I can assure you that you are a lot closer to us than u think.
|
Chris S.
|
(MM club member)
|
2005-08-30 04:49 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I'm right there with Allen and I can assure you that I am no where close to you and Shawn. I may be playing putt putt, in fact.
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel(R) Pentium(R) 4 CPU 3.20GHz Speed = 3192 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 22:28:44.093 Processing End = 2005/08/29 22:28:44.140 Duration = 0000/00/00 00:00:00.047 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 107
Thank you for participating in KiXtart Golf!
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 04:56 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
[whining post censored by administrator]
|
Shawn
|
(KiX Supporter)
|
2005-08-30 05:04 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmmm, this is all getting very interesting ... not feeling so comfortable anymore, we got some swingers in the front nine.
|
maciep
|
(Korg Regular)
|
2005-08-30 05:22 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Finally, i can go to sleep!!
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 23:02:45.468 Processing End = 2005/08/29 23:02:45.515 Duration = 0000/00/00 00:00:00.047 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 84
|
Allen
|
(KiX Supporter)
|
2005-08-30 05:23 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 23:05:31.781 Processing End = 2005/08/29 23:05:31.796 Duration = 0000/00/00 00:00:00.014 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 104 Thank you for participating in KiXtart Golf!
|
NTDOC
|
(KiX Master)
|
2005-08-30 05:28 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Maciep in the lead and with a Celeron
|
Shawn
|
(KiX Supporter)
|
2005-08-30 05:32 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Not yet ....
KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 23:14:55.928 Processing End = 2005/08/29 23:14:55.958 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 83
|
Allen
|
(KiX Supporter)
|
2005-08-30 05:43 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I'm beating my poor horse as hard as I can... (not my chicken)
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/29 23:24:06.406 Processing End = 2005/08/29 23:24:06.406 Duration = 0000/00/00 00:00:00.000 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 98 Thank you for participating in KiXtart Golf!
|
Allen
|
(KiX Supporter)
|
2005-08-30 07:17 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 00:59:57.343 Processing End = 2005/08/30 00:59:57.343 Duration = 0000/00/00 00:00:00.000 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 97 Thank you for participating in KiXtart Golf!
|
Allen
|
(KiX Supporter)
|
2005-08-30 08:31 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.KIX
Computer OS = Windows XP Professional CPU = AMD Athlon(tm) 64 Processor 3200+ Speed = 2002 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 02:12:24.156 Processing End = 2005/08/30 02:12:24.156 Duration = 0000/00/00 00:00:00.000 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 95 Thank you for participating in KiXtart Golf!
|
NTDOC
|
(KiX Master)
|
2005-08-30 08:36 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
You stoke/shake it more then 3 times and you're playing with it.
|
maciep
|
(Korg Regular)
|
2005-08-30 12:37 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Had to get this one in before i go to work.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 06:17:03.953 Processing End = 2005/08/30 06:17:04.015 Duration = 0000/00/00 00:00:00.061 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 83
|
|
Re: KiXgolf: Happy Numbers
|
|
I can not wait to see this code. My mind just can't see any way to get below 95.
|
Shawn
|
(KiX Supporter)
|
2005-08-30 02:35 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 08:18:31.817 Processing End = 2005/08/30 08:18:31.837 Duration = 0000/00/00 00:00:00.020 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 82
|
MightyR1
|
(MM club member)
|
2005-08-30 02:43 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
82... That's almost half my code ;(
|
Shawn
|
(KiX Supporter)
|
2005-08-30 02:47 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Pat, you did get the new package ja ? And changed your function name to "A" ja ?
|
maciep
|
(Korg Regular)
|
2005-08-30 03:05 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Slowly getting down to the that 76, hey Shawn? Can't do anything myself til tonight...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 03:12 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I know shawn was holding back from day one... but, gladly had my moments of glory.
maybe twisted the knife little too hard with hoby as he no longer is able to see.
|
Shawn
|
(KiX Supporter)
|
2005-08-30 03:17 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
This aint golf - it's Poker ;0)
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 03:19 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I went to bed hoping my stack overflows would underflow but no... they came back almost sooner than the headache.
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 03:28 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
poker? so if I say my score is 54, I win?
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 03:33 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
lol! 177. the golf scoring engine needs an update. it calculated my block comments too
|
Shawn
|
(KiX Supporter)
|
2005-08-30 03:44 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hey, no bluffing allowed ;0)
|
Lonkero
|
(KiX Master Guru)
|
2005-08-30 03:51 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
bluff? what are you calling a bluff?
|
MightyR1
|
(MM club member)
|
2005-08-30 11:34 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
Pat, you did get the new package ja ? And changed your function name to "A" ja ?
my function is A()
gonna do a redesign
|
iffy
|
(Starting to like KiXtart)
|
2005-08-30 11:42 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
My first attempt for this one and actually my first try at KiXgolf, nothing to be proud of (yet) but I gotta start somewhere
[CODE] KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Speed = 1799 MHz Memory = 1022 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 23:22:38.850 Processing End = 2005/08/30 23:22:38.870 Duration = 0000/00/00 00:00:00.019 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 142 Thank you for participating in KiXtart Golf! [/CODE]
|
maciep
|
(Korg Regular)
|
2005-08-31 12:39 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I have two versions now with a score of 83. Does that beat shawns one version with a score of 82?
|
MightyR1
|
(MM club member)
|
2005-08-31 12:42 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXtart KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium III Speed = 696 MHz Memory = 256 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/31 00:22:59.765 Processing End = 2005/08/31 00:22:59.795 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 108
Thank you for participating in KiXtart Golf! Press any key to continue...
|
jtokach
|
(Seasoned Scripter)
|
2005-08-31 12:48 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
You guys are off the hook. I envision Shawn's code to be employing the hidden HappyNumbers() method in the Kixforms math lib. Like Hoby, I can't wait to see the public code.
|
Shawn
|
(KiX Supporter)
|
2005-08-31 01:08 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
iffy, thats pretty impressive considering most of us (me anyways) entered with 180+
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 01:32 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
jim, just talked with shawn about that a day ago. he should be denied the race as he can easily alter the kixforms devel build
|
maciep
|
(Korg Regular)
|
2005-08-31 04:07 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Shawn, your turn...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 21:47:51.765 Processing End = 2005/08/30 21:47:51.843 Duration = 0000/00/00 00:00:00.077 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 80
|
|
Re: KiXgolf: Happy Numbers
|
|
I'll make sure that with the next round of KiXgolf only publicly available KiXforms DLLs are allowed and that no undocumented KiXforms functionality is allowed
|
Shawn
|
(KiX Supporter)
|
2005-08-31 05:20 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Jens - can you go online MSN when you get a min ...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 05:52 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
lol. guilt, it's a weird thing...
|
maciep
|
(Korg Regular)
|
2005-08-31 06:05 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
thought i posted this earlier, but apparently not.
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Celeron Speed = 1096 MHz Memory = 190 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/30 23:45:37.171 Processing End = 2005/08/30 23:45:37.328 Duration = 0000/00/00 00:00:00.156 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 79
|
Shawn
|
(KiX Supporter)
|
2005-08-31 06:10 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Is it getting hot in here ?
|
|
Re: KiXgolf: Happy Numbers
|
|
Well I developed a new approach (for me at least) that was nifty (i think), but alas it added two strokes to my pathetic score of 95.
|
Chris S.
|
(MM club member)
|
2005-08-31 02:57 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
The best I've been able to do so far is...
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Speed = 1998 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/31 08:39:17.099 Processing End = 2005/08/31 08:39:17.299 Duration = 0000/00/00 00:00:00.200 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 93
Thank you for participating in KiXtart Golf! Press any key to continue...
|
Shawn
|
(KiX Supporter)
|
2005-08-31 04:02 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/31 09:43:58.141 Processing End = 2005/08/31 09:43:58.171 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 78
|
|
Re: KiXgolf: Happy Numbers
|
|
Not dead yet.
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 13 Speed = 1798 MHz Memory = 1024 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/31 09:45:41.757 Processing End = 2005/08/31 09:45:41.787 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 84
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 04:22 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
hmm... you have still 8 hours to beat the others.
plenty of time, plenty of time...
|
iffy
|
(Starting to like KiXtart)
|
2005-08-31 06:42 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Well, took another quick look and I'm down to 132 (from 142) but I'm getting very curious about how the sub 100 scores are done. Either my brain isn't functioning or some of you have really twisted minds... errr... inventive minds sounds nicer I guess
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 06:48 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
iffy, well... some of the boys are born with this sorta functionality in their brains. they make the impossible happen.
but, once they post their code, I bet someone quickly sees place for improvement. that's another type of brain.
I hope I belong to the group 2 as certainly I can't keep up with group 1.
|
Shawn
|
(KiX Supporter)
|
2005-08-31 07:50 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
well guys, to be fair, I am laying all my cards on the table, plus - I wont be around at 6pm for the drinks. Jens has my code and will be posting. I am 100% positive that it will be very interesting when all hands are shown. I'm going camping until Sunday and will miss all the fun :0(
KiXtart Version = 4.51 Beta 1 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Intel Pentium Model 9 Speed = 1398 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/31 13:31:08.571 Processing End = 2005/08/31 13:31:08.601 Duration = 0000/00/00 00:00:00.029 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 76
Thank you for participating in KiXtart Golf!
|
maciep
|
(Korg Regular)
|
2005-08-31 08:04 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
i'm stuck at work, can't do anything else. i'll post my code when i get back from the gym tonight.
|
Shawn
|
(KiX Supporter)
|
2005-08-31 08:59 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Since I'm officially in the lead - if you guys want to extend the deadline until midnight tonight - and if Jens is OK with it, I'm OK with it too.
Im heading out now - chat on Sunday.
-Shawn
|
maciep
|
(Korg Regular)
|
2005-08-31 09:33 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
No need to extend til midnight on my account. i'm content with a top-5 finish
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 09:44 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
good for you. I'm not.
gladly this first round was devided into 2 by the rename. I won't get left totally without glory
|
Chris S.
|
(MM club member)
|
2005-08-31 09:54 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
I don't know Lonk. Here is my best score with the function named HappyNumbers, not A
Quote:
KiXtart KiXtart Version = 4.50 KiXGolf Script = kixgolf_happy_numbers.kix
Computer OS = Windows XP Professional CPU = Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Speed = 1998 MHz Memory = 510 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: Happy Numbers Processing Start = 2005/08/31 15:31:57.073 Processing End = 2005/08/31 15:31:57.213 Duration = 0000/00/00 00:00:00.140 # Tests Run = 57 # Tests Passed = 57 # Tests Failed = 0 Result = passed KiXGolf Score = 116
Thank you for participating in KiXtart Golf! Press any key to continue...
Oh, and I'm all for ending this part of the tournament on time (6:00 pm EST).
|
MightyR1
|
(MM club member)
|
2005-08-31 10:39 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Can't get it below 107...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 10:52 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
lol. hmm... my last shot at the long name is 118. but on the other hand, didn't work on that after the change.
|
|
Re: KiXgolf: Happy Numbers
|
|
I now have two functions now. One is looping and the other is recursive. Both have a score of 84. I am having a hard time thinking of more things to check/change that might get me closer to Shawn.
|
Bryce
|
(KiX Supporter)
|
2005-08-31 10:57 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Quote:
I now have two functions now. One is looping and the other is recursive. Both have a score of 84. I am having a hard time thinking of more things to check/change that might get me closer to Shawn.
you know... i had it in my head that everything had to be in 1 function...
|
Lonkero
|
(KiX Master Guru)
|
2005-08-31 11:01 PM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
LOL!
|
Lonkero
|
(KiX Master Guru)
|
2005-09-01 12:08 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
any last minute kick ins?
|
MightyR1
|
(MM club member)
|
2005-09-01 12:12 AM
|
|
|
|
|
Re: KiXgolf: Happy Numbers
|
|
Not from me...
|