#66407 - 2002-06-09 11:29 PM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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
|
|
|
|
#66409 - 2002-06-10 12:00 AM
Re: KiXtart Golf Tournament Part III !!!
|
Howard Bullock
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.
|
Top
|
|
|
|
#66410 - 2002-06-10 12:00 AM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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
|
|
|
|
#66412 - 2002-06-10 12:15 AM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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
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
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
Registered: 1999-08-13
Posts: 8611
|
ah crap - my base 36->10 broke - and it can't get up
|
Top
|
|
|
|
#66416 - 2002-06-10 01:45 AM
Re: KiXtart Golf Tournament Part III !!!
|
Howard Bullock
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
|
Top
|
|
|
|
#66417 - 2002-06-10 01:47 AM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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
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
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 ]
|
Top
|
|
|
|
#66420 - 2002-06-10 01:59 AM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I can't wait to see this code!
|
Top
|
|
|
|
#66422 - 2002-06-10 02:14 AM
Re: KiXtart Golf Tournament Part III !!!
|
Howard Bullock
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 ]
|
Top
|
|
|
|
#66423 - 2002-06-10 02:21 AM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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!
Brian
|
Top
|
|
|
|
#66425 - 2002-06-10 03:10 AM
Re: KiXtart Golf Tournament Part III !!!
|
BrianTX
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
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 566 anonymous users online.
|
|
|