Page 7 of 9 « First<56789>
Topic Options
#68260 - 2002-07-19 12:18 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now I'm feeling sad I didn't take my laptop at home.
dudes, go to sleep!

this is not fare!!!!
_________________________
!

download KiXnet

Top
#68261 - 2002-07-19 12:51 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
What erroneous value? I don't have a problem with any of mine. The golf.kix script says I got it right... I can probably shave a few more strokes, though, although I don't really have time right now. [Smile]

Enjoy!

Brian

Top
#68262 - 2002-07-19 01:00 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
brian, does your script remove values correctly?
the golf kix says to my script it's ok but jens says something that also values marked for deletion needs to be deleted.
_________________________
!

download KiXnet

Top
#68263 - 2002-07-19 01:23 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Brian,

AHJ posted this
quote:
There is a typo in both the original Import2 posting and in the Zip file
The Import2\Subdirectory1 "Binary1" entry
contains this string ...,726f,... (missing ',')

And i have seen mentioned by Jens (The tournament master ) that this is by intend, AND it shouldn’t be imported.

If this has to be checked i wil have to add 20 points to my last scorechart.

Still no errorchecking, score is now: 908

I get a lot of 000000000000 on my screen AND the please post message

-Erik

ps.
Special for you Lonkero:
My script removes values as intended.

Top
#68264 - 2002-07-19 01:23 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Yes.. the ones marked for deletion are:

"name"=-

and [-HKLM\etc\etc\etc]

Mine deletes them fine.

I also get the 0000000, etc. message.

The golf.zip file I downloaded had no such error( nor the binary1 value even).. So, I didn't realize it was an issue.

P.S. It's a little hard to do this if there are different versions of the files...

Brian

[ 19 July 2002, 01:34: Message edited by: BrianTX ]

Top
#68265 - 2002-07-19 07:07 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
I reckon we should change the scoring system to give each command and variable a point each, rather than per length. The per length scoring system gives EXPANDENVIRONMENTVARS more points than GO for no reason.

To improve your score, you can make a UDF called A that contains your WRITEPROFILESTRING function and get a lower score. I think this goes against the whole concept/principle of golf by allowing a more complicated script to score better than a simpler one.

I propose that we change the scoring system to count keywords and variables instead, allowing a better indication of cleaner coding to show. This would also allow more meaningful variable names, increasing code readability.

my 2c
cj

[ 19 July 2002, 07:08: Message edited by: cj ]

Top
#68266 - 2002-07-19 07:18 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
erik, I think jens said that misspelled data does not have to be cared of.

this means two things:
the value may not get in.
the value may go in.

my script writes that value in just fine and I'm not going to drop it out and get 50 more hits by it.
as we don't need to make errorchecking or datavalidation of any type.
_________________________
!

download KiXnet

Top
#68267 - 2002-07-19 08:26 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
cj, in your example "if you write a UDF 'A' and call it your get a lower score" is not correct. If you write a UDF, you have to include the code of that UDF as well.

[ 19 July 2002, 08:27: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#68268 - 2002-07-19 09:37 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
KixGolf score = 828

sh*t!
adding the delvalue code added 43 strokes!!! [Mad] (reference 785 from post "posted 17 July 2002 00:13" at page 4)

not funny anymore [Frown] [Frown] [Frown]

let's get some coffee and smoke a cigarette and find out what the heck is wrong...
_________________________
!

download KiXnet

Top
#68269 - 2002-07-20 12:24 AM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
CJ, I agree.

Counting varnames as one point would also make the use of $ alone as varname obsolete.

It would also be nice if decaring vaiables using Dim and Global were free. Right now i’m making a script that breakes all my own principles. I use nondescriptive varnames and reuse varibles for different purposes, which i would never do ’in the real world’

The backside of imlying new rules is that it wil be very difficult to count the points.

As for the function idea for long command names, i belive that if you have to use writeprofilestring more than 3 times in your script you would start to improve your score by creating a function for it.

-Erik

ps.
My score is now: 878 (And the script is nearly impossible to understand)

Top
#68270 - 2002-07-19 01:03 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
cutting characters is not easy anymore.
KixGolf score = 823

{edit}
make that:
KixGolf score = 813

now:
KixGolf score = 811

now I can go again for cigarette:
KixGolf score = 805

came back took some coffee and:
KixGolf score = 801

[ 19 July 2002, 13:59: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68271 - 2002-07-19 02:49 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think I should start working now.

anyway, got some magic here:
KixGolf score = 799

{edit}
oh...
I forgot to parse one line...
KixGolf score = 786

[ 19 July 2002, 14:57: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#68272 - 2002-07-19 06:06 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I like the scoring system as is because it challanges you to think differently ('Think outside the bun', Taco Bell commercial), now it's not about beautiful code, or self-explanatory code. It's about optimizing as much functionality into a single line as possible. Of course, this also makes it harder to read/understand the script, but that's part of the challange.
_________________________
There are two types of vessels, submarines and targets.

Top
#68273 - 2002-07-19 06:23 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Somehow I seem to stay 100 behind you Lonkero.. I'm only at 893 so far.. [Smile] (Of course, I've only been working on this for a couple days!)

Brian

[ 19 July 2002, 18:24: Message edited by: BrianTX ]

Top
#68274 - 2002-07-19 06:33 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
brian, now you know how it felt with golf III! [Razz]

man, I've been so happy at work after I got it under 800...
I'm like flying.
_________________________
!

download KiXnet

Top
#68275 - 2002-07-19 08:21 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I'm only down to 888.. so far... [Smile]
{edit}
869
{edit}
861
{edit}
853.. It's getting harder to make smaller...
{edit}
840
{edit}
829
{edit}
814 -- 30 more to go. lol.. for now.
{edit}
808
{edit}
798

Brian

[ 19 July 2002, 21:40: Message edited by: BrianTX ]

Top
#68276 - 2002-07-19 09:56 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Ok... I have successfully shaved it down to:

773

I don't know if I can save any more strokes, but this is where it stands so far!

Brian
{edit}
766

[ 19 July 2002, 22:37: Message edited by: BrianTX ]

Top
#68277 - 2002-07-19 10:25 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
bastard. I tell my mom!

I have to change my logic if I want to cut more than 2 strokes!!!!

ok, let's put up a fight.

laptop, on...
_________________________
!

download KiXnet

Top
#68278 - 2002-07-19 10:49 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
I'm looking forward to see the winning script.

I gave up at about 1200 i thougt, anyway i have tweaked it to 848 now, so i'm still in the medals [Wink]

-Erik

Top
#68279 - 2002-07-19 10:51 PM Re: New KiXtart Golf Challenge! (extended to Saturday, July 20, 6pm EST )
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I bet Howard will surprise us and post a nice score just before time's up... [Smile]

Brian

P.S. Now at 761.

{edit}
756
{edit}
753

{edit}
I can get it to 749, but I'm not going to unless challenged... (It appears I'm being challenged! lol)

[ 19 July 2002, 23:13: Message edited by: BrianTX ]

Top
Page 7 of 9 « First<56789>


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

Who's Online
0 registered and 1083 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.095 seconds in which 0.031 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