Page 9 of 9 « First<56789
Topic Options
#99371 - 2003-03-16 12:27 AM Re: KiXtart Golf: CD Sorter
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no, it wasn't, but that doesn't matter anymore...
quess I need to make myself totally new code...
_________________________
!

download KiXnet

Top
#99372 - 2003-03-15 05:06 PM Re: KiXtart Golf: CD Sorter
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I believe data conversion is my main problem. I just can't seem to find a way to force Kixtart to treat the gap variable as a double precision number throughout my routine. It seems that during function calls, kixtart does its own internal data format conversions & this conversion is not fixed but rather based upon the actual values in the arrays.
_________________________
Jack

Top
#99373 - 2003-03-15 05:40 PM Re: KiXtart Golf: CD Sorter
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
[Cool] [Razz]
It's getting harder to reduce the size. Still looking though [Wink]

code:
Average CD Length = 44.58
Average Gap = 0.42
Average Gap [%] = 0.93

KiXtart
KiXtart Version = 4.21 Release Candidate 1
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 848 MHz
Memory = 511 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/15 11:43:56.249
Processing End = 2003/03/15 11:44:05.463
Duration = 0000/00/00 00:00:09.213
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 207

Thank you for participating in KiXtart Golf!

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#99374 - 2003-03-15 08:17 PM Re: KiXtart Golf: CD Sorter
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Is anybody using plain old integers? Just remove the dots in the numbers and you don't have to worry about conversions
code:
$a='1.234'
$a=val(join(split($a,'.')))

As you only need to return the index numbers it's not really important whether you wourk with doubels or integers.

[ 15. March 2003, 20:18: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#99375 - 2003-03-15 08:41 PM Re: KiXtart Golf: CD Sorter
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Jens, should we post the result file of 100 loops with the code for Phase #2?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#99376 - 2003-03-15 08:43 PM Re: KiXtart Golf: CD Sorter
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Howard, it's not really necessary as the processing times will indicate how long a 100-loop run would take.
_________________________
There are two types of vessels, submarines and targets.

Top
#99377 - 2003-03-16 12:38 AM Re: KiXtart Golf: CD Sorter
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Results of the first round of KiXGolf - CD Sorter:

Best published score: 207 by Howard Bullock

Scoring Timeline (top line is most recent post):
207 = Howard
214 = Howard
360 = Howard
244 = Lonkero
245 = Lonkero
230 = Maciep
239 = Maciep
279 = Richard
248 = Lonkero
256 = Lonkero
249 = Maciep
278 = Lonkero
278 = Maciep
297 = Maciep
367 = Maciep
283 = Richard
737 = Maciep
_________________________
There are two types of vessels, submarines and targets.

Top
Page 9 of 9 « First<56789


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.202 seconds in which 0.173 seconds were spent on a total of 12 queries. Zlib compression enabled.

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