Page 2 of 9 <12345>Last »
Topic Options
#199229 - 2010-08-03 12:42 AM Re: KixGolf - Luhn's Mod [Re: Jochen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4517
Loc: USA
Just to be 100% I am adding 4 more test cases. If your code is right, these shouldn't matter. I'll update the tester download asap.

3456789012345675=0
456789012345671=0
567890123456781=0
678901234567899=0

Top
#199230 - 2010-08-03 12:49 AM Re: KixGolf - Luhn's Mod [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4517
Loc: USA
 Quote:

This one was a math-101 moment, aka: when you see it you'll sh* bricks


LOL! Pretty sure I know which UREKA! moment this was. \:\)

Top
#199232 - 2010-08-03 03:37 AM Re: KixGolf - Luhn's Mod [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4517
Loc: USA
Scores after about 36 hours...
 
Jochen 162 Maciep 215 Glenn 220

Top
#199233 - 2010-08-03 03:47 AM Re: KixGolf - Luhn's Mod [Re: Allen]
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Finally got back to this tonight, but it's not gonna be easy to catch Jochen!

 Code:
KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/02 21:43:02.602
Processing End   = 2010/08/02 21:43:02.634
Duration         = 0000/00/00 00:00:00.032
# Tests Run      = 50
# Tests Passed   = 50
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 183
_________________________
Eric

Top
#199234 - 2010-08-03 03:54 AM Re: KixGolf - Luhn's Mod [Re: maciep]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4517
Loc: USA
Hey Eric... Add the 4 new tests to your ini. I just added them this evening.
Top
#199235 - 2010-08-03 04:02 AM Re: KixGolf - Luhn's Mod [Re: Allen]
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Yeah I saw that right after I posted....algorithm is still tight

 Code:
KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/02 22:00:26.734
Processing End   = 2010/08/02 22:00:26.780
Duration         = 0000/00/00 00:00:00.046
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 183
_________________________
Eric

Top
#199236 - 2010-08-03 05:42 AM Re: KixGolf - Luhn's Mod [Re: maciep]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
just wanted to get on the board...

KiXtart Version = 4.61
KiXGolf Script = kixgolf_lm.kix

Computer
OS = Windows Vista Ultimate Edition
CPU = Intel Pentium III
Speed = 2333 MHz
Memory = 2048 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/02 22:41:12.982
Processing End = 2010/08/02 22:41:12.998
Duration = 0000/00/00 00:00:00.016
# Tests Run = 54
# Tests Passed = 54
# Tests Failed = 0
Result = passed
KiXGolf Score = 235

Thank you for participating in KiXtart Golf!
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#199237 - 2010-08-03 06:26 AM Re: KixGolf - Luhn's Mod [Re: Allen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
morning guys, new test cases verified:

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_lm.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 15
Speed            = 2399 MHz
Memory           = 2048 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/03 06:24:59.741
Processing End   = 2010/08/03 06:24:59.757
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 162

Thank you for participating in KiXtart Golf!


_________________________



Top
#199238 - 2010-08-03 08:10 AM Re: KixGolf - Luhn's Mod [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
hello hello.
I was told to finally tee off... guess I will do that then.
_________________________
!

download KiXnet

Top
#199241 - 2010-08-03 08:53 AM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
ok, is the checkdigit supposed to be included in the calculations too?
that just doesn't make any sense.
_________________________
!

download KiXnet

Top
#199242 - 2010-08-03 09:02 AM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
no, guess that wasn't it.
what do I miss here?
the tester says this should result in 3: 378282246310005
but manually calculating I get: 677272443320005
thus, 52 = FAILURE

all my amkixter tests fail and I don't see why they should result in any different outcome. help!
_________________________
!

download KiXnet

Top
#199243 - 2010-08-03 12:04 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Hey Lonkero, you need to start on the right with the check digit, and then work your way to the left

The check digit isn't doubled, but it is included when adding the numbers up

378282246310005

358484286610005

3+5+8+4+8+4+2+8+6+6+1+5=60
_________________________
Eric

Top
#199244 - 2010-08-03 12:20 PM Re: KixGolf - Luhn's Mod [Re: maciep]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
lol. damn. right, left... who could have known? ;\)
_________________________
!

download KiXnet

Top
#199245 - 2010-08-03 02:22 PM Re: KixGolf - Luhn's Mod [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4350
Loc: New Jersey
I'm not finding much time to put into this, sadly.. Did manage to shave 18 strokes from my original code, though.
 Code:
KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/03 08:20:30.783
Processing End   = 2010/08/03 08:20:30.799
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 202
Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199246 - 2010-08-03 03:03 PM Re: KixGolf - Luhn's Mod [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
my reversed code still fails those amkix ones \:\(
_________________________
!

download KiXnet

Top
#199247 - 2010-08-03 03:17 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
k, my first attempt at this:
 Code:
KiXtart
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_lm.kix

Computer
OS               = Windows Vista Business Edition
CPU              = Intel Pentium Model 15
Speed            = 1995 MHz
Memory           = 2038 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/03 16:16:14.451
Processing End   = 2010/08/03 16:16:14.535
Duration         = 0000/00/00 00:00:00.084
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 186
_________________________
!

download KiXnet

Top
#199248 - 2010-08-03 03:39 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
second...
 Code:
KiXtart
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_lm.kix

Computer
OS               = Windows Vista Business Edition
CPU              = Intel Pentium Model 15
Speed            = 1995 MHz
Memory           = 2038 MB

KiXGolf Scoring Engine
Scoring Engine   = 3.0.3

KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/03 16:37:44.652
Processing End   = 2010/08/03 16:37:44.732
Duration         = 0000/00/00 00:00:00.080
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 172

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
#199249 - 2010-08-03 03:42 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
171
_________________________
!

download KiXnet

Top
#199250 - 2010-08-03 03:53 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
167
_________________________
!

download KiXnet

Top
#199251 - 2010-08-03 04:11 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
163
_________________________
!

download KiXnet

Top
Page 2 of 9 <12345>Last »


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

Who's Online
0 registered and 283 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.046 seconds in which 0.013 seconds were spent on a total of 14 queries. Zlib compression enabled.

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