Ok use the next ini to check my script:
[Test 1]
Input=...._.._....._.._.._.._.._.~..|._|._||_||_.|_...||_||_|~..|._.._|..|._||_|..||_|._|
Output=123456789
[Test 2]
Input=...._.._.._.._.._.._....._.~|_||_||.||.||_...|..|..||_.~..|._||_||_||_|..|..|..|._|
Output=ambiguous
[Test 3]
Input=._.._.._.._.._.._.._.._.._.~|_||_||_||_||_||_||_||_||_|~|_||_||_||_||_||_||_||_||_|
Output=failure
[Test 4]
Input=._....._.._.._.._.._.._.._.~|_|..||_||_||_||_||_||_||_|~|_|..||_||_||_||_||_||_||_|
Output=878888888
[Test 5]
Input=...._.._.._.._.._.._....._.~..||_.._|._||.||_.|_|...|_|~..||_|._|._||_||_||_|...._|
Output=163306869
[Test 6]
Input=...........................~..|..|..|..|..|..|..|..||..~..|..|..|..|..|..|..|..||..
Output=111111110
[Test 7]
Input=...........................~..|..|..|..|..|..|..|..|.|.~..|..|..|..|..|..|..|..|.|.
Output=failure
Which results in:
Your solution passed all tests
KiXtart
KiXtart Version = 4.60
KiXGolf Script = kixgolf_cs.kix
KiXGolf Scoring Engine
Scoring Engine = 3.3
KiXtart Golf Score
Tournament = Check Scanning
Processing Start = 2008/04/17 19:41:06.364
Processing End = 2008/04/17 19:41:06.469
Duration = 0000/00/00 00:00:00.104
KiXGolf Score = 575
Thank you for participating in KiXtart Golf!
_________________________
It's better to have scripted and died, then to never have scripted at all