Sealeopard
(KiX Master)
2005-02-19 12:21 AM
KiXgolf: Balanced Ternary Addition - Private Coding

=============
The Challenge
=============


Balanced ternary is a positional notation for expressing values in base-3, which uses the symbols -1, 0, and 1 as digits. To convert a balanced tertiary number to decimal, add together the position-dependent values of the digits. The value of the nth digit (counting from the right) is 3^(n-1). For example, the balanced tertiary number -110-1 has the decimal value 27*-1 + 9*1 + 3*0 + 1*-1 = -19.
Addition between two balanced ternary digits is defined by the following table:
Code:

+ | -1 0 1
-----------------
-1 | -11 -1 0
0 | -1 0 1
1 | 0 1 1-1



If the adding of two digits results in multiple digits, the results are carried over as in normal addition.
For example, adding together 1-1-1 (5) and 10-1 (8) results in 111 (13) as illustrated by the following diagram:
Code:

-1 -1
1 -1 -1
+ 1 0 -1
----------
1 1 1



Or, more detailed:
Code:

1 -1 -1
+ 1 0 -1
----------
-1 1
-1
1 -1
----------
1
-1 1
1 -1
----------
1
1
-1 1
1
----------
0 1 1 1




A download is available at http://people.bu.edu/jenmeyer/kixtart/kixgolf_bta.zip


=============
Specification
=============

Calculate the Balanced Ternary Addition based on two ternary inputs and output the result in ternary notation as well.


=============
Inputs & Outputs
=============


Inputs are two ternary notation numbers in the range of -255 and +255.
Output will be one ternary notation number.


=======
Scoring
=======


All provided ternary number combinations must be correctly added to have a valid BTA UDF and to have the KiXgolf score count.


=============
General rules
=============


  • The UDF must be written as one or more lines.
  • The UDF is expected to finish in a reasonable time, e.g. if it gets started when the challenge opens, it's expected to be finished by the time the challenge closes even on a somewhat slow computer. The UDF has to be valid during the period that the challenge runs.
  • You can submit scores as often as you want until the deadline, there's no reason to wait until the last minute for a score submission. In fact, other people want to see the score to beat. So don't be a spoilsport by hoarding your score. Submit early and often.
  • The UDF may only use the KiXtart/KiXforms commands/functions/macros, no other code fragments are allowed. Calls to cOM components that are part part of a standard default Windows installation are allowed.
  • Calls to other executables, as long as they are part of a standard default Windows installation are allowed.
  • The use of the KiXforms DLL is also permitted as the KiXforms DLL can now be considered an integral part of KiXtart scripting.
  • The UDF should be self-contained (except for any I/O mentioned in the challenge). In particular, you may not do things like fetching extra data from a remote site or file.
  • You may assume ASCII as character set.
  • You are not allowed to use additional code that is external to the KiXgolf UDF Collection. All code must be contained within the KiXgolf UDF Collection.
  • You are allowed to only use publicly available versions of KiXtart and KiXforms, private builds or alpha builds are NOT allowed
  • Your submitted score must include the KiXart/KiXforms version used.

When posting KiXtart Golf Scores, please include the KIXGOLF_*.TXT file that is created in the script directory. It contains some basic information about the computer that the script is run on and the resulting scores.

========
Deadlines
========


Private coding starts Friday, February 18, 2005 at 6:00pm EST
Private coding ends Tuesday, February 22, 2005 at 6:00pm EST
Public coding start Tuesday, February 22, 2005 at 6:00pm EST
Public coding ends Friday, February 25, 2005 at 6:00pm EST


============
Test program
============


A test program is provided to help screen entries and to provide the Golf Score.
Any program that passes the test program can be submitted. If you are surprised that your solution passed the test program, please submit it anyway! That will help me identify bugs in the test program.

================================================================
KiXtart GOLF - How To Play
================================================================


Most importantly, anybody can play, no age restrictions, no penalties, no handicap!

The object in "real" golf is to hit the ball in the hole in the fewest strokes. The object in KiXtart Golf is to get from input (tee) to target (hole) in the fewest keystrokes.

Example: How many positive elements are in array $a?

Array $a could be of structure $a=[1, 2 ,-3, 4, -5, -7, 8, 9]

One approach:
[CODE]
for $b=0 to ubound($a)
if $a[$b]>0
$c=$c+1
endif
next
[/CODE]
for a score of 45.

Another solution is:
[CODE]
DO
$b=$b+1
if $a[$b]>0
$c=$c+1
endif
UNTIL $b>(UBOUND($a)+1)
[/CODE]
for a score of 53.

Better approach: Code sample 1

================================================================
KiXtart GOLF - The Rules
================================================================


1) The goal of KiXtart Golf is to score the lowest strokes.

2) Strokes are all characters in a piece of code except whitespace characters, unless the whitespace character is necessary for the line of code to work. Therefore, carriage returns and line feeds do not count or spaces in between the '=' sign when assigning variables, e.g. '$a = $b' scores 5.

3) Code can be constructed any way you like, as long as it is syntactically correct with KiXtart.

4) The final solution MUST pass all test scripts that accompagny the KiXtart golf challenge.

5) The use of '$' as a variable is allowed.

6) In case of questions about a particular way to count the KiXtart Golf Challenge organizer has the last call.

7) During the private coding phase, no code is allowed to be posted. Violations result in disqualification of said player.

8) During the public coding phase, code should be posted, reused, and borrowed from other players.

9) The test script contains the official KiXgolf scoring engine


================================================================
KiXtart GOLF - The Duration of the Competition
================================================================


1) Private coding phase: From date/time of posting the tournament challenge to Tuesday, February 22, 2005 at 6:00pm EST (BBS+6 time)

2) Public coding phase: From Tuesday, February 22, 2005 at 6:00pm EST (BBS+6 time) to Friday, February 25, 2005 at 6:00pm EST (BBS+6 time)

3) Final results: Friday, February 25, 2005 at 6:00pm EST (BBS+6 time)

You will need the complete package from http://people.bu.edu/jenmeyer/kixtart/kixgolf_bta.zip.


LonkeroAdministrator
(KiX Master Guru)
2005-02-19 02:31 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

yeah.
simple enough this time. should take no more than an hour.
your extra "explanations" got me actually more confused...


Sealeopard
(KiX Master)
2005-02-19 02:45 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Good

I've got my clock ticking...tick...tock...tick...


LonkeroAdministrator
(KiX Master Guru)
2005-02-19 03:26 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

went to downstares and came back, read the task again and damn.
it wasn't as simple as I though


LonkeroAdministrator
(KiX Master Guru)
2005-02-19 03:34 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

alrighty, I think I got the ternary to decimal part working.
the hard part that I missed on the first read, the encoding back... I still need to do that.
and fix the kixgolf.kix as it once again misses the wkix32 support.
and it trashes the output on 1 line.
missing "?" somewhere?


LonkeroAdministrator
(KiX Master Guru)
2005-02-19 03:42 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

nah, my bad with the carbage

Sealeopard
(KiX Master)
2005-02-19 04:13 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

What do you want/need for the WKIX32 support?

A


? 'Press any key to continue...'
GET $sKey


sufficient?


LonkeroAdministrator
(KiX Master Guru)
2005-02-19 04:21 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

ja that would be sufficient in most cases.

LonkeroAdministrator
(KiX Master Guru)
2005-02-19 04:24 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

I got some problems with the encode decode stuff still but the results seem to be fine in decimal:
Quote:


KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Home Edition
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/19 17:15:03.140
Processing End = 2005/02/19 17:15:03.406
Duration = 0000/00/00 00:00:00.266
# Tests Run = 106
# Tests Passed = 9
# Tests Failed = 97
Result = failed
KiXGolf Score = 193

Thank you for participating in KiXtart Golf!




ShawnAdministrator
(KiX Supporter)
2005-02-20 02:10 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

347 ... and a headache ...

LonkeroAdministrator
(KiX Master Guru)
2005-02-20 09:43 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

I think I figured it out when I couldn't sleep...
now need to test my theory...


LonkeroAdministrator
(KiX Master Guru)
2005-02-20 10:14 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

alrighty... got it working. was worth the sleep
Quote:


KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Home Edition
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/20 11:06:00.062
Processing End = 2005/02/20 11:06:00.187
Duration = 0000/00/00 00:00:00.125
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 335

Thank you for participating in KiXtart Golf!





LonkeroAdministrator
(KiX Master Guru)
2005-02-20 11:47 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

hmm...
should have read the mambo.
there is lot easier way to do this!


LonkeroAdministrator
(KiX Master Guru)
2005-02-20 12:26 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

ja, easier it is but somehow it still gets lot larger.
currently at:
KiXGolf Score = 430

think I abandon this one and go back to the shorter code...

[edit]
KiXGolf Score = 402

hmm... this is wicked way of coding... really wicked.


LonkeroAdministrator
(KiX Master Guru)
2005-02-20 12:57 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

alrighty, back to the original code.
Quote:


KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Home Edition
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/20 13:48:46.906
Processing End = 2005/02/20 13:48:47.031
Duration = 0000/00/00 00:00:00.125
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 327

Thank you for participating in KiXtart Golf!




LonkeroAdministrator
(KiX Master Guru)
2005-02-20 01:15 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

323
322


ShawnAdministrator
(KiX Supporter)
2005-02-20 01:57 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

295
284
276


Sealeopard
(KiX Master)
2005-02-20 02:59 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Ah, the battle is on

LonkeroAdministrator
(KiX Master Guru)
2005-02-20 05:51 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

no battle.
still at 318.

[edit]
297.


Sealeopard
(KiX Master)
2005-02-20 05:54 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

So, you're giving up?

LonkeroAdministrator
(KiX Master Guru)
2005-02-20 05:57 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

hell no!

[edit]
290

286


ShawnAdministrator
(KiX Supporter)
2005-02-20 06:03 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

eek!

LonkeroAdministrator
(KiX Master Guru)
2005-02-20 06:44 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

hmm...
280

[edit]
279


ShawnAdministrator
(KiX Supporter)
2005-02-20 07:05 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

274

LonkeroAdministrator
(KiX Master Guru)
2005-02-20 07:53 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Quote:


KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/20 20:48:07.843
Processing End = 2005/02/20 20:48:07.953
Duration = 0000/00/00 00:00:00.110
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 268




ShawnAdministrator
(KiX Supporter)
2005-02-20 08:29 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

b-hole !

ShawnAdministrator
(KiX Supporter)
2005-02-20 09:05 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/20 14:57:00.477
Processing End = 2005/02/20 14:57:00.537
Duration = 0000/00/00 00:00:00.059
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 268


ShawnAdministrator
(KiX Supporter)
2005-02-20 09:08 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

265

MightyR1
(MM club member)
2005-02-21 08:57 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Nice...

Gonna dig into it.



LonkeroAdministrator
(KiX Master Guru)
2005-02-21 11:19 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

shawn, feeling happy now?

LonkeroAdministrator
(KiX Master Guru)
2005-02-21 11:42 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 261

LonkeroAdministrator
(KiX Master Guru)
2005-02-21 01:47 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

btw, nice to have you in, pat.

LonkeroAdministrator
(KiX Master Guru)
2005-02-21 02:49 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 256

Sealeopard
(KiX Master)
2005-02-21 02:52 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

nice

LonkeroAdministrator
(KiX Master Guru)
2005-02-21 03:13 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 253

[edit]
KiXGolf Score = 252


LonkeroAdministrator
(KiX Master Guru)
2005-02-21 03:38 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

just realized, the private round will end tomorrow.
and at such time I won't be around to win it.


LonkeroAdministrator
(KiX Master Guru)
2005-02-21 03:46 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 248

LonkeroAdministrator
(KiX Master Guru)
2005-02-21 03:58 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 245

edit:
KiXGolf Score = 244


edit 2:
KiXGolf Score = 243


MightyR1
(MM club member)
2005-02-21 05:02 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 768

Now to fine tune


LonkeroAdministrator
(KiX Master Guru)
2005-02-21 05:30 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

nice.
the score is weird though.
even more than my second approach initial code...


NTDOCAdministrator
(KiX Master)
2005-02-21 05:47 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Jooel you Golfer you.

LonkeroAdministrator
(KiX Master Guru)
2005-02-21 07:31 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

thanks.
Code:

KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Home Edition
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/21 20:22:20.281
Processing End = 2005/02/21 20:22:20.406
Duration = 0000/00/00 00:00:00.125
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 241

Thank you for participating in KiXtart Golf!



NTDOCAdministrator
(KiX Master)
2005-02-21 08:09 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

I think Jooel is working under a handicap though

Quote:

Windows XP Home Edition




Les
(KiX Master)
2005-02-21 08:12 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

No wonder he hates XP so much... he has the dumbed down version.

ShawnAdministrator
(KiX Supporter)
2005-02-21 10:57 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 231

NTDOCAdministrator
(KiX Master)
2005-02-21 11:17 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

WOW Jooel, sounds like Shawns calling you out again. Another long night of no sleep?

ShawnAdministrator
(KiX Supporter)
2005-02-21 11:18 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

KiXGolf Score = 226
KiXGolf Score = 225


NTDOCAdministrator
(KiX Master)
2005-02-21 11:21 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Pat, how is your code coming along?

Bryce
(KiX Supporter)
2005-02-22 12:55 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

well...

i got sidelined by work.

but i did get base10 to base3 / base3 to base10 working, but could not figure out the base3 to -1 0 1 notation.


maciep
(Korg Regular)
2005-02-22 02:18 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Getting a late start on this one. Looks like Shawn and Jooel are up on the 16th tee already
Quote:


KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Xeon(TM) CPU 2.80GHz
Speed = 2791 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/21 20:08:01.245
Processing End = 2005/02/21 20:08:01.308
Duration = 0000/00/00 00:00:00.063
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 600





maciep
(Korg Regular)
2005-02-22 03:36 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Quote:


KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Xeon(TM) CPU 2.80GHz
Speed = 2791 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/21 21:27:44.584
Processing End = 2005/02/21 21:27:44.646
Duration = 0000/00/00 00:00:00.061
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 387





maciep
(Korg Regular)
2005-02-22 05:29 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Quote:


KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Xeon(TM) CPU 2.80GHz
Speed = 2791 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/21 23:20:27.354
Processing End = 2005/02/21 23:20:27.432
Duration = 0000/00/00 00:00:00.077
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 332





NTDOCAdministrator
(KiX Master)
2005-02-22 07:48 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Starting to look good, keep it up. Very fast reduction in code size from where you started.

LonkeroAdministrator
(KiX Master Guru)
2005-02-22 10:42 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

ja, that's why he posted the huge sized code

damn shawn...
not sure... I took some brandy when I went to bed and dreamed of my code.
still not sure I can rip anything of it...


maciep
(Korg Regular)
2005-02-22 02:11 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Thanks for the encouragement Doc (but jooel is kinda right )

Quote:


iXtart
iXtart Version = 4.23
iXGolf Script = kixgolf_bta.kix

omputer
S = Windows XP Professional
PU = Intel(R) Xeon(TM) CPU 2.80GHz
peed = 2791 MHz
emory = 1024 MB

iXGolf Scoring Engine
coring Engine = 3.0.3

iXtart Golf Score
ournament = KiXtart Golf: Balanced Terniary Addition
rocessing Start = 2005/02/22 08:02:06.700
rocessing End = 2005/02/22 08:02:06.762
uration = 0000/00/00 00:00:00.061
Tests Run = 106
Tests Passed = 106
Tests Failed = 0
esult = passed
iXGolf Score = 317





ShawnAdministrator
(KiX Supporter)
2005-02-22 02:33 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

like my dear old wife says ... "stare at something long enough, and its bound to shrink" ;0)


LonkeroAdministrator
(KiX Master Guru)
2005-02-22 02:47 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

hmm...
shawn, good for you.
I'm just shrinking my other (403) code...


LonkeroAdministrator
(KiX Master Guru)
2005-02-22 05:11 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

nah...
that code got me just to 280... damn.


LonkeroAdministrator
(KiX Master Guru)
2005-02-22 06:18 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

k, back to 241 code and doing some slowdowns... was worth it:
Code:

KiXtart
KiXtart Version = 4.23
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Home Edition
CPU = Intel(R) Pentium(R) 4 CPU 2.80GHz
Speed = 2793 MHz
Memory = 512 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/22 19:09:16.109
Processing End = 2005/02/22 19:09:52.203
Duration = 0000/00/00 00:00:36.093
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 217

Thank you for participating in KiXtart Golf!



LonkeroAdministrator
(KiX Master Guru)
2005-02-22 06:27 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Code:
KiXGolf Score    = 213



LonkeroAdministrator
(KiX Master Guru)
2005-02-22 06:47 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Code:
KiXGolf Score    = 209



ShawnAdministrator
(KiX Supporter)
2005-02-22 11:02 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

220 - still not good enough

maciep
(Korg Regular)
2005-02-22 11:46 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Limping along...

KiXGolf Score = 286


ShawnAdministrator
(KiX Supporter)
2005-02-22 11:58 PM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

you got like 10 minutes to shave-off 80 strokes - go eric, go eric ! lets crush that Finish basta ! ;0) I'm at the end of my code-rope.

maciep
(Korg Regular)
2005-02-23 12:04 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

didn't even realize that. maybe i'll just change my code to read the ini file

There we go
Quote:


KiXtart
KiXtart Version = 4.22
KiXGolf Script = kixgolf_bta.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Xeon(TM) CPU 2.80GHz
Speed = 2791 MHz
Memory = 1024 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Balanced Terniary Addition
Processing Start = 2005/02/22 18:02:29.899
Processing End = 2005/02/22 18:02:32.633
Duration = 0000/00/00 00:00:02.734
# Tests Run = 106
# Tests Passed = 106
# Tests Failed = 0
Result = passed
KiXGolf Score = 167





Sealeopard
(KiX Master)
2005-02-23 12:14 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Private coding is now closed.

The winner of the private coding session is Finnish maven Jooel with 209 strokes closely followed by our Candian friend Shawn with 220 strokes.

Please post your codes in the new thread and hack away at the other's codes.


MightyR1
(MM club member)
2005-02-23 11:25 AM
Re: KiXgolf: Balanced Ternary Addition - Private Coding

Can't get it below 500.

Will see how Jooel and Shawn looked at it. Maybe I can see some tips to improve my code...