Page 2 of 3 <123>
Topic Options
#128693 - 2004-11-01 03:46 AM Re: This weekend's mini-putt challenge
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Again ... can't take the credit for this one but ... score is 44 ... anyone that improves on this is blazing new territory ...

Code:

for $x = 0 To 13
($x - 13) * -($x > 6) - $x * -($x < 7) " "
next



-Shawn

Top
#128694 - 2004-11-01 04:17 AM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
I'm no genious or anything, but I think that this is an improvement...

Code:

For $ = 0 To 13
($ - 13) * -($ > 6) - $ * -($ < 7) " "
Next



Thats 38

Top
#128695 - 2004-11-01 04:20 AM Re: This weekend's mini-putt challenge
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Well easy to trim minor stuff from your code, but it is cheesy...

Code:
for $ = 0 To 13
($ - 13) * -($ > 6) - $ * -($ < 7) " "
next


Top
#128696 - 2004-11-01 04:21 AM Re: This weekend's mini-putt challenge
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Chris beat me by 3 seconds

Okay, fine 3 minutes


Edited by NTDOC (2004-11-01 07:10 AM)

Top
#128697 - 2004-11-01 04:22 AM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Luv that Replace All keyboard shortcut in Primalscript®.

It's 3 minutes, though.

Top
#128698 - 2004-11-01 10:42 AM Re: This weekend's mini-putt challenge
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
score -1...


Code:

for $=0 To 13
($ - 13) * -($ > 6) + $ * ($ < 7) " "
next

_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#128699 - 2004-11-01 01:57 PM Re: This weekend's mini-putt challenge
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Nice one(s) ... current score is 38 ...

Not sure why Patricks score is showing as 38 in my golf scorer ...

Top
#128700 - 2004-11-01 02:24 PM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Is it counting the space between the quotes?
Top
#128701 - 2004-11-01 02:26 PM Re: This weekend's mini-putt challenge
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
idk, im just using Howards kixgolf.kix, which counts spaces inside quotes ... are you using it, or did you just hand-job the count ?
Top
#128702 - 2004-11-01 02:37 PM Re: This weekend's mini-putt challenge
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Code:
For $=0 To 13
$+($>6)*(13-$*2) " "
Next


Top
#128703 - 2004-11-01 04:32 PM Re: This weekend's mini-putt challenge
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Nice, nice, nnnice .... 33
Top
#128704 - 2004-11-01 04:42 PM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Ja. I think at this point Rich has won the putt-putt challenge.
Top
#128705 - 2004-11-01 04:55 PM Re: This weekend's mini-putt challenge
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Why, thank you.

It may be small, but it's perfectly formed.

Top
#128706 - 2004-11-01 05:09 PM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
What I like about this challenge is the use of the '>' & '<' symbols to form the bitwise flags needed to increment and decrement the For...Next loop. Sort of like mini If...EndIf statements.
Top
#128707 - 2004-11-01 05:40 PM Re: This weekend's mini-putt challenge
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Just to prove that I can be as pedantic as the next man...

The ">" and "<" symbols are conditional operators, not bitwise. The result of the conditional test is a boolean value.

">" and "<" can be used with any basic data type, for great KiXgolf trickery. This of course includes strings.

Bitwise operators such as "&" and "|" can only be used with numeric data types and the result of these is a number, not a boolean value.

Logical operators such as AND and OR can be used with any basic data type, but the inputs are coerced to boolean TRUE or FALSE.

You can get burned if you don't use the correct type of operator and it may not be obvious why.

1 & 2 = 0
1 AND 2 = 1
7 & 11 = 3
7 AND 11 = 1

Top
#128708 - 2004-11-01 05:45 PM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
I'm glad you explained what I was trying to say.
Top
#128709 - 2004-11-01 06:41 PM Re: This weekend's mini-putt challenge
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Don't get BIT WISE with me buddy

You boys are just lucky it's Lonkero's Birthday soon and he appears to be out of town on this mini-challenge, you know he'd stay up 24/7 to beat you Richard

Top
#128710 - 2004-11-01 08:21 PM Re: This weekend's mini-putt challenge
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
well before jooel can jump in here,

Code:

for $ = 0 to 13
$+$/7*(13-$*2) " "
next

_________________________
Eric

Top
#128711 - 2004-11-01 08:32 PM Re: This weekend's mini-putt challenge
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
31
Top
#128712 - 2004-11-01 10:13 PM Re: This weekend's mini-putt challenge
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Brilliant!
Top
Page 2 of 3 <123>


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

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

Generated in 0.073 seconds in which 0.032 seconds were spent on a total of 13 queries. Zlib compression enabled.

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