Page 4 of 9 « First<23456>Last »
Topic Options
#199290 - 2010-08-04 04:20 PM Re: KixGolf - Luhn's Mod [Re: Allen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
hmmm, can't seem to remember all the golf shortcuts... Let's see if I can find some tonight

 Code:

KiXtart
KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_lm.KIX

Computer
OS               = Windows XP Home Edition
CPU              = Intel Pentium III
Speed            = 2500 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/04 16:08:20.421
Processing End   = 2010/08/04 16:08:20.421
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 55
# Tests Passed   = 55
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 195
 
Thank you for participating in KiXtart Golf!
_________________________
The Code is out there

Top
#199294 - 2010-08-04 05:29 PM Re: KixGolf - Luhn's Mod [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hey Rogier,

this is not bad for a 2 year abstinence, aye?
_________________________



Top
#199296 - 2010-08-04 05:34 PM Re: KixGolf - Luhn's Mod [Re: Jochen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Lonkero	148
Jochen	159
Maciep	164
Drill	195
Glenn	202
Benny69	235
Bryce   ???
Brad	???

Top
#199300 - 2010-08-04 06:26 PM Re: KixGolf - Luhn's Mod [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
rogier is in the house!

still miss hobie and such but already have lots of the old gang playing. me likey!!!
_________________________
!

download KiXnet

Top
#199301 - 2010-08-04 07:17 PM Re: KixGolf - Luhn's Mod [Re: Allen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yo Allen,

I noticed that I could cut my code down to 153 strokes without failing the test cases, while not obeying all rules.

Please add a valid 16 digit CC number starting with 8 to the test cases \:\)
_________________________



Top
#199302 - 2010-08-04 07:20 PM Re: KixGolf - Luhn's Mod [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or 7 or 2 or what ever \:\)
_________________________
!

download KiXnet

Top
#199303 - 2010-08-04 07:21 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
7-9 is o-kay. 2 makes not much sense.
_________________________



Top
#199304 - 2010-08-04 07:57 PM Re: KixGolf - Luhn's Mod [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what you mean?
_________________________
!

download KiXnet

Top
#199305 - 2010-08-04 07:58 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
how about 12?
_________________________
!

download KiXnet

Top
#199306 - 2010-08-04 08:08 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I played a bit with it ... if I omit test for valid 16digit CCnumbers which are starting with higher values than 6 my code still is passing all tests .. thats what I mean.

Therefore: Allen, please add a test case with a valid (Luhn check) 16 digit number starting with 7,8,or 9 .. I am tempted to cheat
_________________________



Top
#199307 - 2010-08-04 08:23 PM Re: KixGolf - Luhn's Mod [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
temp this! ;\)
 Code:
KiXtart Version  = 4.53
KiXGolf Script   = kixgolf_lm.kix

Computer
OS               = Windows Vista Business Edition
CPU              = Intel Pentium Model 15
Speed            = 1994 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/04 21:21:50.535
Processing End   = 2010/08/04 21:21:50.598
Duration         = 0000/00/00 00:00:00.062
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 146

Thank you for participating in KiXtart Golf!
Press any key to continue...
_________________________
!

download KiXnet

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

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, I just figured out that if you do a creditcard with more than about 254 (give or take) numbers, my newist code fails...
_________________________
!

download KiXnet

Top
#199309 - 2010-08-04 09:07 PM Re: KixGolf - Luhn's Mod [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
146 .. you Basterd \:D

Did a complete rewrite and reached 163 161 (after swapping variables $ and $d)
Well, at least I have 2 versions to play with ..


Edited by Jochen (2010-08-04 09:12 PM)
_________________________



Top
#199310 - 2010-08-04 09:50 PM Re: KixGolf - Luhn's Mod [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
back in the race with new code

KiXtart
KiXtart Version  = 4.60
KiXGolf Script   = kixgolf_lm.kix

Computer
OS               = Windows XP Professional
CPU              = Intel Pentium Model 15
Speed            = 2400 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/04 21:48:59.761
Processing End   = 2010/08/04 21:48:59.792
Duration         = 0000/00/00 00:00:00.031
# Tests Run      = 54
# Tests Passed   = 54
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 157

Thank you for participating in KiXtart Golf!


_________________________



Top
#199311 - 2010-08-04 10:17 PM Re: KixGolf - Luhn's Mod [Re: Jochen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Thanks for finding these... I figured there were ones I missed.

I'm out, but will add them this evening.

Top
#199312 - 2010-08-04 11:22 PM Re: KixGolf - Luhn's Mod [Re: Allen]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
See what these do with your "cheat" code:

2345678901234560=0
7890123456789013=0
8901234567890122=0
9012345678901238=0
234567890123454=0
789012345678900=0
890123456789018=0
901234567890129=0

Let me know, and I'll add them to the download.

Top
#199313 - 2010-08-05 12:18 AM Re: KixGolf - Luhn's Mod [Re: Allen]
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Trying to get the brain started, but it doesn't seem to wanna turn over \:\)

 Code:
KiXtart Golf Score
Tournament       = KiXtart Golf: Luhn's Mod
Processing Start = 2010/08/04 18:15:16.265
Processing End   = 2010/08/04 18:15:16.312
Duration         = 0000/00/00 00:00:00.047
# Tests Run      = 62
# Tests Passed   = 62
# Tests Failed   = 0
Result           = passed
KiXGolf Score    = 162


Note: I added the suggested new test cases
_________________________
Eric

Top
#199314 - 2010-08-05 02:14 AM Re: KixGolf - Luhn's Mod [Re: maciep]
BradV Online   content
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
I almost have it, but haven't even started to golf! Score is 876 with 3 failures. I know where it is failing, just need to modify my logic a little. How are you capturing the output to a format you can cut and paste?
Top
#199315 - 2010-08-05 02:18 AM Re: KixGolf - Luhn's Mod [Re: BradV]
BradV Online   content
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
I got it all to pass with a score of 906. \:\)
I'm going to bed...

Top
#199316 - 2010-08-05 02:31 AM Re: KixGolf - Luhn's Mod [Re: BradV]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
In your directory there is a file called kixgolf_lm.txt... open that up and see your last result.
Top
Page 4 of 9 « First<23456>Last »


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

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.077 seconds in which 0.026 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