Page 2 of 4 <1234>
Topic Options
#203346 - 2011-10-24 04:42 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
As edited above .. the mod 40 move seems to be bulletproof!
I'll reference this one as Shane's shameless shoplift

No seriously, clever move, well done. Pretty much nailed the purpose of public rounds
_________________________



Top
#203347 - 2011-10-24 05:05 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh crap,

I'm afraid I found a case to spoil yours:

2200/02=2200/02/28

The year 2200 is a multiple of 4, also of 100, but not of 400 so it should be not considered a leap year..

your 133 code returns this:




Input: 2200/02
INIResult: 2200/02/28
YourResult: 2200/02/29


KiXtart Version = 4.62
KiXGolf Script = kixgolf_eom.kix
Scoring Engine = 3.3
OS = Windows XP Professional
CPU = Intel Pentium Celeron
Speed = 2393 MHz
Memory = 4096 MB

Tournament = End of Month
Processing Start = 2011/10/24 17:00:38.125
Processing End = 2011/10/24 17:00:38.140
Duration = 0000/00/00 00:00:00.014
# Tests Run = 21
# Tests Passed = 20
# Tests Failed = 1
Result = failed
KiXGolf Score = 133



while my 134 passes it:




KiXtart Version = 4.62
KiXGolf Script = kixgolf_eom.kix
Scoring Engine = 3.3
OS = Windows XP Professional
CPU = Intel Pentium Celeron
Speed = 2393 MHz
Memory = 4096 MB

Tournament = End of Month
Processing Start = 2011/10/24 17:03:16.390
Processing End = 2011/10/24 17:03:16.406
Duration = 0000/00/00 00:00:00.016
# Tests Run = 21
# Tests Passed = 21
# Tests Failed =
Result = passed
KiXGolf Score = 134

Thank you for participating in KiXtart Golf!



Sorry dude \:\(
_________________________



Top
#203348 - 2011-10-24 05:08 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
lol... "Sorry"

yeah right \:\)

Top
#203349 - 2011-10-24 05:12 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Allen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
believe it or not, I really felt sorry after announcing the shortcut to be bulletproof.. On the other hand, If I hadn't wrote that, I would've been all *Nelson* HA-HAH! \:D
_________________________



Top
#203350 - 2011-10-24 05:15 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
I'll add all the new cases to the INI and upload later today, but for now please also add the new case.

21 total test cases
2200/02=2200/02/28

Top
#203352 - 2011-10-24 05:26 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Allen]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Dang it! Worth a shot haha. I see what other crimes I can come up with.

;\)

Top
#203355 - 2011-10-24 06:27 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
It seems to still pass with a couple less ()'s..

 Code:
function a($)
    $ = split($,'/')
    $a = $[0]+'/'+$[1]+'/'+(31-right(_1_1__1_1_3_,$[1])+($[0] mod 4=0 & 2=$[1] & $[0] mod 400=0|$[0] mod 100>))
endfunction


 Code:

KiXtart Version  = 4.62
KiXGolf Script   = kixgolf_eom.kix
Scoring Engine   = 3.3
OS               = Windows XP Home Edition
CPU              = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 768 MB

Tournament       = End of Month
Processing Start = 2011/10/24 11:26:04.938
Processing End   = 2011/10/24 11:26:04.954
Duration         = 0000/00/00 00:00:00.015
# Tests Run      = 21
# Tests Passed   = 21
# Tests Failed   = 
Result           = passed
KiXGolf Score    = 132

Thank you for participating in KiXtart Golf!

Top
#203356 - 2011-10-24 06:34 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
There is a felony waiting for a happening here. Who's going to spot it?
Top
#203359 - 2011-10-24 08:13 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Allen]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
 Code:
function a($)
    $ = split($,'/')
    $a = $[0]
    $a = $a+'/'+$[1]+'/'+(31-right(_1_1__1_1_3_,$[1])+(2=$[1] & $a mod 4=0 & $a mod 400=0 | $a mod 100>))
endfunction


 Code:

KiXtart Version  = 4.62
KiXGolf Script   = kixgolf_eom.kix
Scoring Engine   = 3.3
OS               = Windows XP Home Edition
CPU              = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 768 MB

Tournament       = End of Month
Processing Start = 2011/10/24 13:12:32.784
Processing End   = 2011/10/24 13:12:32.784
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 21
# Tests Passed   = 21
# Tests Failed   = 
Result           = passed
KiXGolf Score    = 131

Thank you for participating in KiXtart Golf!

Top
#203360 - 2011-10-24 09:36 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Nice ones there!

good work with the parenthesis
_________________________



Top
#203361 - 2011-10-24 09:39 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

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

function a($)
    $a = left($,7)+'/'
    $ = split($,'/')
    $a = $a+(31-right(_1_1__1_1_3_,$[1])+(2=$[1] & $a mod 4=0 & $a mod 400=0 | $a mod 100>))
endfunction



KiXtart Version  = 4.61
KiXGolf Script   = kixgolf_eom.kix
Scoring Engine   = 3.3
OS               = Windows 7 Professional Edition
CPU              = Intel Pentium III
Speed            = 2669 MHz
Memory           = 4096 MB

Tournament       = End of Month
Processing Start = 2011/10/24 21:38:16.827
Processing End   = 2011/10/24 21:38:16.827
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 21
# Tests Passed   = 21
# Tests Failed   =
Result           = passed
KiXGolf Score    = 127

Thank you for participating in KiXtart Golf!


_________________________



Top
#203362 - 2011-10-24 09:40 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Allen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
 Originally Posted By: Allen
There is a felony waiting for a happening here. Who's going to spot it?


meant that?
_________________________



Top
#203363 - 2011-10-24 09:59 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
 Code:
function a($)
    $a = left($,7)+'/'
    $ = split($,'/')[1]
    $a = $a+(31-right(_1_1__1_1_3_,$)+(2=$ & $a mod 4=0 & $a mod 400=0 | $a mod 100>))
endfunction


 Code:

KiXtart Version  = 4.62
KiXGolf Script   = kixgolf_eom.kix
Scoring Engine   = 3.3
OS               = Windows XP Home Edition
CPU              = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed            = 2793 MHz
Memory           = 768 MB

Tournament       = End of Month
Processing Start = 2011/10/24 14:58:55.990
Processing End   = 2011/10/24 14:58:55.990
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 21
# Tests Passed   = 21
# Tests Failed   = 
Result           = passed
KiXGolf Score    = 124

Thank you for participating in KiXtart Golf!

Top
#203364 - 2011-10-24 10:01 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
120!

 Code:
function a($)
    $a = left($,7)
    $ = right($a,2)
    $a = $a+'/'+(31-right(_1_1__1_1_3_,$)+(2=$ & $a mod 4=0 & $a mod 400=0 | $a mod 100>))
endfunction

Top
#203365 - 2011-10-24 10:03 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
117!

 Code:
function a($)
    $ = left($,7)
    $a = right($,2)
    $a = $+'/'+(31-right(_1_1__1_1_3_,$a)+(2=$a & $ mod 4=0 & $ mod 400=0 | $ mod 100>))
endfunction

Top
#203366 - 2011-10-24 10:06 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
whoa, nice ones .. need a break. Didn't even notice you changed the mod parts to $a
_________________________



Top
#203367 - 2011-10-24 10:07 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Yea, I was surprised it still worked like that actually lol.
Top
#203368 - 2011-10-25 01:01 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: ShaneEP]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
damn, that took long!

function a($)
    $a = substr($,6)
    $a = left($,7)+'/'+(31-right(_1_1__1_1_3_,$a)+(2=$a & $ mod 4=0 & $ mod 400=0 | $ mod 100>))
endfunction



KiXtart Version  = 4.62
KiXGolf Script   = kixgolf_eom.kix
Scoring Engine   = 3.3
OS               = Windows XP Professional
CPU              = Intel Pentium Celeron
Speed            = 2393 MHz
Memory           = 4096 MB

Tournament       = End of Month
Processing Start = 2011/10/25 13:00:10.493
Processing End   = 2011/10/25 13:00:10.493
Duration         = 0000/00/00 00:00:00.000
# Tests Run      = 21
# Tests Passed   = 21
# Tests Failed   =
Result           = passed
KiXGolf Score    = 115

Thank you for participating in KiXtart Golf!

_________________________



Top
#203369 - 2011-10-25 02:13 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
slight variation, as well worth 115

 Code:
function a($)
    $a = right($,-5)
    $a = left($+'/',8)+(31-right(_1_1__1_1_3_,$a)+(2=$a & $ mod 4=0 & $ mod 400=0 | $ mod 100>))
endfunction
_________________________



Top
#203371 - 2011-10-25 04:13 PM Re: Kixgolf Mini Putter - End of Month - Public Round [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmmm...
I thought someone would upgrade the ini on the download...
just saying. :P
_________________________
!

download KiXnet

Top
Page 2 of 4 <1234>


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

Who's Online
0 registered and 1574 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.174 seconds in which 0.131 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