Well, I didn't expect the code to work, but it did.

It's now at the stage where I'm beginning to have trouble working out what is going on!

Running Test 1...Done
Running Test 2...Done
Running Test 3...Done
Running Test 4...Done
Running Test 5...Done
Running Test 6...Done
Running Test 7...Done
Running Test 8...Done
Running Test 9...Done
Running Test 10...Done
Your solution passed all tests

Your solution passed all tests

KiXtart
KiXtart Version = 4.53
KiXGolf Script = kixgolf_lp.KIX

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Linear Pachinko
Processing Start = 2007/10/11 14:42:02.430
Processing End = 2007/10/11 14:42:02.445
Duration = 0000/00/00 00:00:00.014
KiXGolf Score = 174

Thank you for participating in KiXtart Golf!