Page 9 of 9 « First<56789
Topic Options
#178423 - 2007-07-25 08:50 PM Re: KiXgolf Freebie: Quicksum [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

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

the Rules state clearly:

 Quote:

A Quicksum packet allows only uppercase letters and spaces. It always begins and ends with an uppercase letter.


So the trim is perfectly fitting as we are only interested in trailing spaces and know that there can be no leading one ;\)


Edited by Jochen (2007-07-25 08:52 PM)
Edit Reason: trailing and leading :roll:
_________________________



Top
#178425 - 2007-07-25 09:41 PM Re: KiXgolf Freebie: Quicksum [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
right.
sorry.
but wasn't me who said yours didn't work...
_________________________
!

download KiXnet

Top
#178487 - 2007-07-26 10:22 PM Re: KiXgolf Freebie: Quicksum [Re: Jochen]
sixdoubleo Offline
Starting to like KiXtart

Registered: 2004-02-06
Posts: 118
Loc: California, US
I know it looks like everybody already has this solved, but I wanted to check it out just to see how I'd do. Is there somewhere else I can get the download? The original URL is giving me a 404. Thanks!
Top
#178505 - 2007-07-27 04:52 AM Re: KiXgolf Freebie: Quicksum [Re: sixdoubleo]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Try again. Seems that the last upload didn't take. I re-uploaded the ZIP file.
_________________________
There are two types of vessels, submarines and targets.

Top
#178508 - 2007-07-27 09:29 AM Re: KiXgolf Freebie: Quicksum [Re: Jochen]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
 Originally Posted By: Jochen
No Jooel,

the Rules state clearly:

 Quote:

A Quicksum packet allows only uppercase letters and spaces. It always begins and ends with an uppercase letter.


So the trim is perfectly fitting as we are only interested in trailing spaces and know that there can be no leading one ;\)


Oops! That was me, not Jooel.

Top
#178509 - 2007-07-27 09:41 AM Re: KiXgolf Freebie: Quicksum [Re: Richard H.]
Jochen Administrator Offline
KiX Supporter
*****

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

I'm not resentful there, though Jooel posted a code (rtrim) that implicitly follwed your opinion by saying "this would work".

_________________________



Top
#178530 - 2007-07-28 03:50 AM Re: KiXgolf Freebie: Quicksum [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
right...
but, you can't say my rtrim version doesn't work...
_________________________
!

download KiXnet

Top
#178535 - 2007-07-28 03:00 PM Re: KiXgolf Freebie: Quicksum [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I don't
_________________________



Top
#178543 - 2007-07-30 09:46 AM Re: KiXgolf Freebie: Quicksum [Re: Jochen]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Nor me.

BTW Jochen, where can I get one of those big blue "mother and child" ear-rings that you are modelling in your avatar?

I'm bored with the small one that I have in at the moment.

Top
#178611 - 2007-08-01 08:42 PM Re: KiXgolf Freebie: Quicksum [Re: Richard H.]
sixdoubleo Offline
Starting to like KiXtart

Registered: 2004-02-06
Posts: 118
Loc: California, US
Well, not knowing all the the little tricks (EndIf and Next not needed, ASC() only evaluating the first character of a string) I get a 96 on my own merits.

Where can I find a list of some of these "quirks" you guys have found?

 Code:
Function a($t)
Dim $p, $

For $p = 1 to len($t)
    $ = asc(SubStr($t,$p,1))-64
	If $ > 0
	   $a = $a + $p * $
	EndIf
Next
EndFunction




Running Test 1...Done
Running Test 2...Done
Running Test 3...Done
Running Test 4...Done
Running Test 5...Done
Running Test 6...Done
Your solution passed all tests

KiXtart
KiXtart Version = 4.50
KiXGolf Script = kixgolf_qs.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Pentium(R) 4 CPU 3.00GHz
Speed = 2992 MHz
Memory = 2040 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Quicksum
Processing Start = 2007/08/01 11:43:47.213
Processing End = 2007/08/01 11:43:47.213
Duration = 0000/00/00 00:00:00.000
KiXGolf Score = 96

Thank you for participating in KiXtart Golf!


Edited by sixdoubleo (2007-08-01 08:43 PM)

Top
#178612 - 2007-08-01 09:20 PM Re: KiXgolf Freebie: Quicksum [Re: sixdoubleo]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
well done,
there is no documented list of 'quirks' (not really quirks, just coding experience).


Edited by Benny69 (2007-08-01 09:20 PM)
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#178627 - 2007-08-02 03:44 AM Re: KiXgolf Freebie: Quicksum [Re: Benny69]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Shouldn't we call those codign tricks a "handicap", just to keep the Golf theme going ?
_________________________
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
0 registered and 164 anonymous users online.
Newest Members
vertage, dimi575, Drecksnacken, Nlill, webtools321
17735 Registered Users

Generated in 0.041 seconds in which 0.015 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