Page 3 of 5 <12345>
Topic Options
#66407 - 2002-06-09 11:29 PM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Ok.. bug fixed...

Final score (I think):

270!!!

I wish I could post my code now.. I'm at home and I'll be at work tomorrow.. (I hate messing with diskettes..)

Brian

Top
#66408 - 2002-06-09 11:37 PM Re: KiXtart Golf Tournament Part III !!!
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Cripes - I wish YOU could post YOUR script too ! Can't wait to see it. There is no way I'm going to shave 20+ strokes off mine any time soon, so its all up to Howard now, or maybe someone else is lurking in the background (hee-hee-hawwww) ...

I must gracefully concede

[ 09 June 2002, 23:38: Message edited by: Shawn ]

Top
#66409 - 2002-06-10 12:00 AM Re: KiXtart Golf Tournament Part III !!!
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I might just have to go back to the drawing board. With the required name, I'm at 355. [Frown]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66410 - 2002-06-10 12:00 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Don't concede just yet.. just for the heck of it i tried some other numbers.... i found it isn't accurate 100% because the FIX function in 4.10rc2 doesn't work quite right... so now I'm fiddling with it again.

Brian

Top
#66411 - 2002-06-10 12:03 AM Re: KiXtart Golf Tournament Part III !!!
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Well, Im using the fix() function too, so maybe mine isn't working 100% either, but I did try a few conversions ...

Can you provide sopme examples and some answers, so that we all can try ?

question guys, can any of your routines handle base's bigger than 36 ?

[ 10 June 2002, 00:04: Message edited by: Shawn ]

Top
#66412 - 2002-06-10 12:15 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Hmm. this is weird.. I can get it so things seem to work for some conversions but not others. I don't know what the deal is with that, but I'm still working on it.

Brian

Top
#66413 - 2002-06-10 12:37 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Okay.. it seems to be working correctly now.

Once I realized that FIX, INT, and RND don't work well for double floating point numbers, I figured it out... but.. now my score is.....

267!!! (If I remove the variable declaration I MAY not need, it's 263)

Brian

{edit}
Mine has no debugging code, so it won't know if you're entering invalid numbers.. I didn't see it as a requirement.. should it be?

[ 10 June 2002, 00:41: Message edited by: BrianTX ]

Top
#66414 - 2002-06-10 12:52 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Ok.. here are some values returned.. so anyone can check and see if theirs matches (or if they are correct)

code:
BaseConverter("35","10","3") ?
BaseConverter("78","11","13") ?
BaseConverter("2","3","2") ?
BaseConverter("23423","5","12") ?
BaseConverter("BrianTX","36","10")

Result:
1022
67
10
100A
25607922981
-----

This is with the score of 267.

Brian

Top
#66415 - 2002-06-10 01:20 AM Re: KiXtart Golf Tournament Part III !!!
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
ah crap - my base 36->10 broke - and it can't get up [Frown]
Top
#66416 - 2002-06-10 01:45 AM Re: KiXtart Golf Tournament Part III !!!
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Brian, mine match. but I can't seem to get lower than 309.

Verify that your base 2 works:

BaseConverter("64","8","2") = 110100
BaseConverter("52","10","2") = 110100
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66417 - 2002-06-10 01:47 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Just out of curiosity, I tested how large of numbers the script can handle....

Base 36 - 10 long
Base 10 - 15 long
Base 2 - 50 long

Brian

P.S.... Are you participating or judging, sealeopard? Would you like to see my code?

Top
#66418 - 2002-06-10 01:49 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Do you do any sort of error checking? If I was going to publish this UDF, I'd probably check to make sure the inputs were valid, but I did no such checking on this one.

Brian

Top
#66419 - 2002-06-10 01:54 AM Re: KiXtart Golf Tournament Part III !!!
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
At 267 I sure hope there is no error checking. Otherwise, I'm a really bad coder.

No proper UDF would be constructed under these rules.

[ 10 June 2002, 01:55: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66420 - 2002-06-10 01:59 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I shaved off a bit more.. Now I'm at 261...

Brian

Top
#66421 - 2002-06-10 02:06 AM Re: KiXtart Golf Tournament Part III !!!
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I can't wait to see this code! [Cool]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#66422 - 2002-06-10 02:14 AM Re: KiXtart Golf Tournament Part III !!!
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Hey if I don't count my Function/Endfunction lines I'm at 267. Brian, you are counting those aren't you?

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

Top
#66423 - 2002-06-10 02:21 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Hmm. without the Function/EndFunction lines I get 219. With them I get 261.

I seriously doubt my code can be further optimized..... so I'm about to quit.. good luck guys! [Smile]

Brian

Top
#66424 - 2002-06-10 02:55 AM Re: KiXtart Golf Tournament Part III !!!
Sealeopard Offline
KiX Master
*****

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

I will be participating if I can find some quiet time at work. I'm still repairing my home computer which now insists on using drive letter I: as the system drive (no other partitions active).

I already have an idea for the code myself, so I do have to decline to see your code. But I am already looking forward to tomorrow afternoon whne everybody is allowed to post code. I am very curious about the different methods everybody is using.

Also, I have to say, I am very impressed by the participation, I already told my wife that I created a monster. She has read the whole thread and would love to give it a shot too, but she doesn't know KiXtart (she's taking C++ programming classes, though).
_________________________
There are two types of vessels, submarines and targets.

Top
#66425 - 2002-06-10 03:10 AM Re: KiXtart Golf Tournament Part III !!!
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
It's been fun, Jens!

I really don't think I can squeeze my code down any more.

How many hours does everyone have to beat 261 ?

Something like 12?

Brian

Top
#66426 - 2002-06-10 03:22 AM Re: KiXtart Golf Tournament Part III !!!
Sealeopard Offline
KiX Master
*****

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

There are still 18 hours left before the code gets posted. I also expect that some people might join the fray tomorrow morning when they come to work. Not everybody is checking the BBS on weekends.

Another thought that came to mind. Since nearly everybody experimented with KiXtart 4.10RC2 could you please be so nice and report the problems with floating point math (FIX, INT, RND) in the beta forum if you necountered any. I think Ruud will be delighted to hear about our little coding frenzy and the potentially new bugs.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 3 of 5 <12345>


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

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

Generated in 0.08 seconds in which 0.025 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