Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
So now that we have the code to reduce and I am sure that is the focus of everyone, any comments on my code so that I can learn more would be appreciated as well.
I participate in these to learn from everyone else, I am (at this time) really more about completing the challenge than the true Golfing (even though I do try).
_________________________
Today is the tomorrow you worried about yesterday.
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
i added the 2 test cases you guys suggested and my 220 code failed, so with the new test cases i have to resubmit my code at 222:
Code:
[Test 1]
Input=a
Output=<a> is acceptable.
[Test 2]
Input=tv
Output=<tv> is not acceptable.
[Test 3]
Input=ptoui
Output=<ptoui> is not acceptable.
[Test 4]
Input=bontres
Output=<bontres> is not acceptable.
[Test 5]
Input=zoggax
Output=<zoggax> is not acceptable.
[Test 6]
Input=wiinq
Output=<wiinq> is not acceptable.
[Test 7]
Input=eep
Output=<eep> is acceptable.
[Test 8]
Input=houctuh
Output=<houctuh> is acceptable.
[Test 9]
Input=pooop
Output=<pooop> is not acceptable.
[Test 10]
Input=peeep
Output=<peeep> is not acceptable.
[Test 11]
Input=bahhah
Output=<bahhah> is not acceptable.
[Test 12]
Input=abcde
Output=<abcde> is not acceptable.
[Test 13]
Input=ba
Output=<ba> is acceptable.
[Test 14]
Input=baacc
Output=<baacc> is not acceptable.
Code:
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
Running Test 11...Done
Running Test 12...Done
Running Test 13...Done
Running Test 14...Done
Your solution passed all tests
KiXtart
KiXtart Version = 4.60
KiXGolf Script = kixgolf_edts.kix
Computer
OS = Windows Vista Business Edition
CPU = Intel(R) Pentium(R) D CPU 3.20GHz
Speed = 3200 MHz
Memory = 2046 MB
KiXGolf Scoring Engine
Scoring Engine = 3.3
KiXtart Golf Score
Tournament = Easier Done Than Said?
Processing Start = 2008/12/14 07:28:50.867
Processing End = 2008/12/14 07:28:50.883
Duration = 0000/00/00 00:00:00.016
KiXGolf Score = 222
Thank you for participating in KiXtart Golf!
Press any key to continue...
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
i now submit a 194 code
Code:
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
Running Test 11...Done
Running Test 12...Done
Running Test 13...Done
Running Test 14...Done
Your solution passed all tests
KiXtart
KiXtart Version = 4.60
KiXGolf Script = kixgolf_edts.kix
Computer
OS = Windows Vista Business Edition
CPU = Intel(R) Pentium(R) D CPU 3.20GHz
Speed = 3200 MHz
Memory = 2046 MB
KiXGolf Scoring Engine
Scoring Engine = 3.3
KiXtart Golf Score
Tournament = Easier Done Than Said?
Processing Start = 2008/12/14 07:30:31.793
Processing End = 2008/12/14 07:30:31.808
Duration = 0000/00/00 00:00:00.014
KiXGolf Score = 194
Thank you for participating in KiXtart Golf!
Press any key to continue...
Code:
Function EDTS($p)
Dim $, $v, $i, $n, $o, $c
For $i = 1 to $p + 1 ^ 0
$EDTS = '<' + $p + '> is ' + $n + acceptable.
$o = $
$ = SubStr($p, $i, 1)
If InStr(aeiou, $)
$v = $i
Else
$c = $i
EndIf
If ($c - $v) /3 | $i - $v = ($p ^) | $o = $ & $ <> e
$n = 'not '
EndFunction
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
LOL!
We can't have that! added:
Code:
[Test 15]
Input=poop
Output=<poop> is acceptable.
Code:
[Test 1]
Input=a
Output=<a> is acceptable.
[Test 2]
Input=tv
Output=<tv> is not acceptable.
[Test 3]
Input=ptoui
Output=<ptoui> is not acceptable.
[Test 4]
Input=bontres
Output=<bontres> is not acceptable.
[Test 5]
Input=zoggax
Output=<zoggax> is not acceptable.
[Test 6]
Input=wiinq
Output=<wiinq> is not acceptable.
[Test 7]
Input=eep
Output=<eep> is acceptable.
[Test 8]
Input=houctuh
Output=<houctuh> is acceptable.
[Test 9]
Input=pooop
Output=<pooop> is not acceptable.
[Test 10]
Input=peeep
Output=<peeep> is not acceptable.
[Test 11]
Input=bahhah
Output=<bahhah> is not acceptable.
[Test 12]
Input=abcde
Output=<abcde> is not acceptable.
[Test 13]
Input=ba
Output=<ba> is acceptable.
[Test 14]
Input=baacc
Output=<baacc> is not acceptable.
[Test 15]
Input=poop
Output=<poop> is acceptable.
199
Code:
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
Running Test 11...Done
Running Test 12...Done
Running Test 13...Done
Running Test 14...Done
Running Test 15...Done
Your solution passed all tests
KiXtart
KiXtart Version = 4.60
KiXGolf Script = kixgolf_edts.kix
Computer
OS = Windows Vista Business Edition
CPU = Intel(R) Pentium(R) D CPU 3.20GHz
Speed = 3200 MHz
Memory = 2046 MB
KiXGolf Scoring Engine
Scoring Engine = 3.3
KiXtart Golf Score
Tournament = Easier Done Than Said?
Processing Start = 2008/12/14 07:46:57.190
Processing End = 2008/12/14 07:46:57.221
Duration = 0000/00/00 00:00:00.031
KiXGolf Score = 199
Thank you for participating in KiXtart Golf!
Press any key to continue...
Code:
Function EDTS($p)
Dim $, $v, $i, $n, $o, $c
For $i = 1 to $p + 1 ^ 0
$EDTS = '<' + $p + '> is ' + $n + acceptable.
$o = $
$ = SubStr($p, $i, 1)
If InStr(aeiou, $)
$v = $i
Else
$c = $i
EndIf
If ($c - $v) /3 | $i - $v = ($p^) | $o = $ & $ <> e & $ <> o
$n = 'not '
EndFunction
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Unfortunately, rule 32 takes hold:
Quote:
32) Additional test cases can be added during the private round by submitting a proposal for a new test case to the BBS. The proposed test case becomes official once it has been added to the existing test cases and the KiXgolf package has been reposted for download. If new test cases are added within 12 hours of private round end the private round will extend by an additional 24 hours. The public round will then start one day later and also end one day later. Not additional test cases will be added during the public round.
So, better to submit new test cases as early as possible. Therefore, the test cases stand as is. If the code passes the official test cases it's good code. However, we all understand that the test cases do not cover all potential coding approaches.
Everbody fine with this?
_________________________
There are two types of vessels, submarines and targets.