Code:
KiXtart Version  = 4.66
KiXGolf Script   = kixgolf_bob.kix
Scoring Engine   = 3.3
OS               = Windows 10 Pro
CPU              = AMD FX(tm)-8350 Eight-Core Processor
Speed            = 3991 MHz
Memory           = 16384 MB

Tournament       = 99 Bottles of Beer
Processing Start = 2017/11/24 10:47:39.316
Processing End   = 2017/11/24 10:47:39.326
Duration         = 0000/00/00 00:00:00.010
# Tests Run      = 21
# Tests Passed   = 21
# Tests Failed   = 0
Result           = Passed
KiXGolf Score    = 787

Thank you for participating in KiXtart Golf!
for my first round.

Seeing some odd behavior, though. When I write my UDF in an external script, it runs flawlessly. I copy the UDF and paste it into the golf wrapper, it fails unless I convert the $ var to an int, and when I pass it to a sub-func, I need to convert it again. It's only a dozen strokes, but I can't explain why.

Now to start optimizing...

Glenn
_________________________
Actually I am a Rocket Scientist! \:D