Page 3 of 10 <12345>Last »
Topic Options
#146588 - 2005-08-28 04:00 AM Re: KiXgolf: Happy Numbers
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA

Result = passed
KiXGolf Score = 133

Still 7 strokes to high
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146589 - 2005-08-28 04:03 AM Re: KiXgolf: Happy Numbers
krabourn Offline
Hey THIS is FUN
*****

Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
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!




Top
#146590 - 2005-08-28 04:23 AM Re: KiXgolf: Happy Numbers
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Result = passed
KiXGolf Score = 131

Still to trim 5 strokes...


I added 3 & 12 before Jens. My code still works properly.


Edited by Howard Bullock (2005-08-28 04:34 AM)
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146591 - 2005-08-28 04:25 AM Re: KiXgolf: Happy Numbers
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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
_________________________
There are two types of vessels, submarines and targets.

Top
#146592 - 2005-08-28 04:44 AM Re: KiXgolf: Happy Numbers
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
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?

Top
#146593 - 2005-08-28 04:47 AM Re: KiXgolf: Happy Numbers
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
maciep states he has 126.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146594 - 2005-08-28 04:49 AM Re: KiXgolf: Happy Numbers
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
then he said that his 126 didnt work, right?
Top
#146595 - 2005-08-28 04:52 AM Re: KiXgolf: Happy Numbers
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
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!
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146596 - 2005-08-28 05:38 AM Re: KiXgolf: Happy Numbers
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Result = passed
KiXGolf Score = 130

Result = passed
KiXGolf Score = 129

Result = passed
KiXGolf Score = 126



Edited by Howard Bullock (2005-08-28 06:11 AM)
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146597 - 2005-08-28 08:33 AM Re: KiXgolf: Happy Numbers
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
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




Top
#146598 - 2005-08-28 08:48 AM Re: KiXgolf: Happy Numbers
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
If it was permitted to rename the udf to "H", wouldn't that lower the scores at least with 22?
Top
#146599 - 2005-08-28 09:04 AM Re: KiXgolf: Happy Numbers
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
146 (without renaming the UDF )
Top
#146600 - 2005-08-28 09:11 AM Re: KiXgolf: Happy Numbers
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146601 - 2005-08-28 09:48 AM Re: KiXgolf: Happy Numbers
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4548
Loc: USA
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!




Top
#146602 - 2005-08-28 09:50 AM Re: KiXgolf: Happy Numbers
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4548
Loc: USA
By the way... Witto... I bet our UDFs are almost identical... your scores have been matching mine and duration is the same too.
Top
#146603 - 2005-08-28 01:40 PM Re: KiXgolf: Happy Numbers
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
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!




Top
#146604 - 2005-08-28 02:07 PM Re: KiXgolf: Happy Numbers
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
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!




Top
#146605 - 2005-08-28 04:47 PM Re: KiXgolf: Happy Numbers
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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))


Edited by Lonkero (2005-08-28 04:51 PM)
_________________________
!

download KiXnet

Top
#146606 - 2005-08-28 05:04 PM Re: KiXgolf: Happy Numbers
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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...

_________________________
!

download KiXnet

Top
#146607 - 2005-08-28 05:11 PM Re: KiXgolf: Happy Numbers
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
my approach is wrong.
can't seem to get below 167
_________________________
!

download KiXnet

Top
Page 3 of 10 <12345>Last »


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

Who's Online
0 registered and 208 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

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

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