Page 3 of 9 <12345>Last »
Topic Options
#209084 - 2014-06-30 06:35 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, the output does not only output the winner, it will have to output the input as well?
_________________________
!

download KiXnet

Top
#209085 - 2014-06-30 07:08 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
first attempt = infinite loop

second attempt = infinite loop

third attempt = infinite loop


Edited by Lonkero (2014-06-30 07:15 PM)
_________________________
!

download KiXnet

Top
#209086 - 2014-06-30 07:19 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, the test suite does require spaces in the output, not just comma's.
it also does not default to showing which test is wrong.

this can be fixed by changing line 92 of kixgolf_wwd.kix to if 1=1
_________________________
!

download KiXnet

Top
#209087 - 2014-06-30 07:22 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Code:
Test22
Input     : seventeen,eighteen,nineteen,twenty
INIResult : seventeen=1, eighteen=1, nineteen=5, twenty=8, Winner=seventeen


that is not right. that is a draw.
_________________________
!

download KiXnet

Top
#209088 - 2014-06-30 07:23 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Nothing new. It's always required using $verbose to show results.
Top
#209089 - 2014-06-30 07:25 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Allen]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
len(seventeen)=9, len(eighteen)=8, longer len wins when the DR is the same.
Top
#209090 - 2014-06-30 07:25 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Code:
Test25
Input     : eleven,thirteen,three,seven,zero
INIResult : eleven=9, thirteen=9, three=2, seven=2, zero=1, Winner=zero
YourResult: eleven=9, thirteen=9, three=2, seven=2, zero=1, winner=zero


KiXtart Version  = 4.63
KiXGolf Script   = kixgolf_wwd.kix
Scoring Engine   = 3.3
OS               = Windows 7 Professional Edition
CPU              = Intel Pentium Model 15
Speed            = 1995 MHz
Memory           = 4096 MB

Tournament       = Win, Win or Draw
Processing Start = 2014/06/30 12:24:40.128
Processing End   = 2014/06/30 12:24:40.253
Duration         = 0000/00/00 00:00:00.125
# Tests Run      = 25
# Tests Passed   = 0
# Tests Failed   = 25
Result           = Failed

so, output is also case sensitive.
urgh....
_________________________
!

download KiXnet

Top
#209091 - 2014-06-30 07:28 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, forgot the length rule.

test20 has wrong ini-content (no Winner word)
_________________________
!

download KiXnet

Top
#209092 - 2014-06-30 07:34 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
???

[Test20]
Input=four,five,one,two,three,six,seven,eight,nine
Output=four=6, five=6, one=7, two=4, three=2, six=7, seven=2, eight=4, nine=6, Draw

Top
#209093 - 2014-06-30 07:41 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
omfb's...
ok. I see. so if there is a winner, we add a word Winner (with the capital letter) and if it is a draw we omit that word....
_________________________
!

download KiXnet

Top
#209094 - 2014-06-30 07:44 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
And replace it with Draw
Top
#209095 - 2014-06-30 07:51 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
we omit the winning field value with the draw. the addition of "and the winner is" to the output adds more keystrokes to the UDF.
but as long as the rules are the same for everyone I can live with it...
_________________________
!

download KiXnet

Top
#209096 - 2014-06-30 07:53 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Yes... I changed the rules only for you Lonk... it's your handicap for winning all the time ;\)
Top
#209097 - 2014-06-30 07:54 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok. finally got the output syntax correct.
 Quote:

KiXtart Version = 4.63
KiXGolf Script = kixgolf_wwd.kix
Scoring Engine = 3.3
OS = Windows 7 Professional Edition
CPU = Intel Pentium Model 15
Speed = 1995 MHz
Memory = 4096 MB

Tournament = Win, Win or Draw
Processing Start = 2014/06/30 12:53:24.055
Processing End = 2014/06/30 12:53:24.086
Duration = 0000/00/00 00:00:00.031
# Tests Run = 25
# Tests Passed = 25
# Tests Failed = 0
Result = Passed
KiXGolf Score = 356

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
#209098 - 2014-06-30 08:15 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Quote:

KiXtart Version = 4.63
KiXGolf Script = kixgolf_wwd.kix
Scoring Engine = 3.3
OS = Windows 7 Professional Edition
CPU = Intel Pentium Model 15
Speed = 1995 MHz
Memory = 4096 MB

Tournament = Win, Win or Draw
Processing Start = 2014/06/30 13:14:28.013
Processing End = 2014/06/30 13:14:28.028
Duration = 0000/00/00 00:00:00.014
# Tests Run = 25
# Tests Passed = 25
# Tests Failed = 0
Result = Passed
KiXGolf Score = 310

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
#209099 - 2014-06-30 08:20 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, this with the easy tricks.
now, lets see Jochen come back and force me to lower my score.

 Quote:

KiXtart Version = 4.63
KiXGolf Script = kixgolf_wwd.kix
Scoring Engine = 3.3
OS = Windows 7 Professional Edition
CPU = Intel Pentium Model 15
Speed = 1995 MHz
Memory = 4096 MB

Tournament = Win, Win or Draw
Processing Start = 2014/06/30 13:18:16.085
Processing End = 2014/06/30 13:18:16.116
Duration = 0000/00/00 00:00:00.031
# Tests Run = 25
# Tests Passed = 25
# Tests Failed = 0
Result = Passed
KiXGolf Score = 299

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
#209100 - 2014-06-30 08:30 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

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

have to rethink this .. can't even omit closing keywords with my current.
But not today.
_________________________



Top
#209101 - 2014-06-30 08:55 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
fine.

296
_________________________
!

download KiXnet

Top
#209102 - 2014-06-30 09:01 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
 Quote:

KiXtart Version = 4.63
KiXGolf Script = kixgolf_wwd.kix
Scoring Engine = 3.3
OS = Windows 7 Professional Edition
CPU = Intel Pentium Model 15
Speed = 1995 MHz
Memory = 4096 MB

Tournament = Win, Win or Draw
Processing Start = 2014/06/30 14:00:28.954
Processing End = 2014/06/30 14:00:28.970
Duration = 0000/00/00 00:00:00.016
# Tests Run = 25
# Tests Passed = 25
# Tests Failed = 0
Result = Passed
KiXGolf Score = 292

Thank you for participating in KiXtart Golf!


[edit, make that 290]


Edited by Lonkero (2014-06-30 09:04 PM)
_________________________
!

download KiXnet

Top
#209103 - 2014-06-30 09:06 PM Re: Kixgolf - Win, Win, or Draw - Private Round [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
last one, I try to promise...
 Quote:

KiXtart Version = 4.63
KiXGolf Script = kixgolf_wwd.kix
Scoring Engine = 3.3
OS = Windows 7 Professional Edition
CPU = Intel Pentium Model 15
Speed = 1995 MHz
Memory = 4096 MB

Tournament = Win, Win or Draw
Processing Start = 2014/06/30 14:05:43.779
Processing End = 2014/06/30 14:05:43.810
Duration = 0000/00/00 00:00:00.030
# Tests Run = 25
# Tests Passed = 25
# Tests Failed = 0
Result = Passed
KiXGolf Score = 284

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet

Top
Page 3 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 255 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.078 seconds in which 0.027 seconds were spent on a total of 15 queries. Zlib compression enabled.

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