Page 6 of 6 « First<23456
Topic Options
#66670 - 2002-06-12 04:05 PM Re: Round 2: KiXtart Golf Tournament Part III
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Folks:

This is post 100 in this thread. I believe this thread is now the largest on this BBS. The KiXtart Golf Tournament Part III has now already created a total of 184 posts since Saturday! Including the additional chity-chat and the scoring discussion we're at 241 posts.
_________________________
There are two types of vessels, submarines and targets.

Top
#66671 - 2002-06-12 05:01 PM Re: Round 2: KiXtart Golf Tournament Part III
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
OK.. this is with error correction/detection.. can anyone do better (or find bugs if there are any? (probably... this is first try).

code:
Function BaseConverter($v,$f,$t)
$t=INT($t)
$f=INT($f)
$e = ($f>36)|($t>36)|($f<2)|($t<2)
$=0
$y=1.
for $n=len($v) to 1 step -1
$x = ASC(UCASE(substr($v,$n,1)))
$z = ($x - 48 - ($x > 64) * 7)
IF ($Z<0)|(($x>57)&($X<65))|$e|($Z>($f-1))
EXIT 1
ENDIF
$=$y * $z +$

$y=$y*$f
next
$n=""
While $
$x = INT($ - (INT($/$t) * $t))
$ = ($-$x)/$t
$n = CHR($x + 48 + ($x > 9) * 7) + $n
Loop
$BaseConverter = $n
Endfunction

KixGolf score = 336

Brian

[ 12 June 2002, 17:18: Message edited by: BrianTX ]

Top
#66672 - 2002-06-12 05:05 PM Re: Round 2: KiXtart Golf Tournament Part III
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
BLAG.. got to check for non-int values... will edit above.

Brian

Top
#66673 - 2002-06-12 05:10 PM Re: Round 2: KiXtart Golf Tournament Part III
Lonkero Administrator Offline
KiX Master Guru
*****

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

could also set memory-error if the $n to be returned would be zero length.
could implement this by somekind of assembly memory-violation call trough console [Big Grin]
could get win9x crashing!

also could add, if inwin=2 error to this is for 32-bit windows only, not runable in DOS!

anyways, good job

[ 12 June 2002, 17:20: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#66674 - 2002-06-12 05:14 PM Re: Round 2: KiXtart Golf Tournament Part III
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I'm confused as to why this wouldn't run in Win9x. It seems to work fine on Win9x as far as I can tell.

{edit}
On the empty string returned, I prefer to think of it as "0".. especially since converting 0 yields an empty string "".

Brian

[ 12 June 2002, 17:21: Message edited by: BrianTX ]

Top
#66675 - 2002-06-12 05:30 PM Re: Round 2: KiXtart Golf Tournament Part III
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
don't want to edit my post again.
I ment, this error crash could work on win9x.

as an error of memory-violation or unknown error.

you said that there can be a bug, and for those cases, programmer allways makes one way out: memory fault, page fault or similar.

I did not mean the script itself wouldn't work...

ok, I might be little tired.
_________________________
!

download KiXnet

Top
#66676 - 2002-06-15 04:14 PM Re: Round 2: KiXtart Golf Tournament Part III
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Brian, I have already posted a UDF to the library that requires BaseConverter(). Are you going to post the UDF to the Library?

{edit} I just changed the requirement. I no longer use BaseConverter. Changed to DecToHex().

[ 15 June 2002, 16:34: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66677 - 2002-06-16 03:50 AM Re: Round 2: KiXtart Golf Tournament Part III
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Indeed it is a real tournament. We think the item with the most replies:

- 3382 14
- 3418 33
- 3447 84
- 3448 13
- 3458 105

(total 249 replies)

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#66678 - 2002-06-16 08:01 AM Re: Round 2: KiXtart Golf Tournament Part III
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We miss one topic.
Current values are:

- 3382 14
- 3418 33
- 3447 84
- 3448 13
- 3458 105
- 3459 11
(total 260 replies)


greetings
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#66679 - 2002-06-28 05:45 PM Re: Round 2: KiXtart Golf Tournament Part III
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
brian, did you post that udf?
we can't see it in lib...
_________________________
!

download KiXnet

Top
#66680 - 2002-06-28 06:38 PM Re: Round 2: KiXtart Golf Tournament Part III
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Nope.. I didn't post it... I got tired of fiddling with it, so I went to other things. I was hoping someone else would verify and/or improve the error correction.

Brian

Top
#66681 - 2002-06-28 06:45 PM Re: Round 2: KiXtart Golf Tournament Part III
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
perhaps will need to do that then...
if no one takes the challenge before that I mean.

this is not one that should be forgotten.

cheers,
_________________________
!

download KiXnet

Top
Page 6 of 6 « First<23456


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

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

Generated in 0.152 seconds in which 0.111 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