#191095 - 2008-12-1306:04 AMRe: KiXgolf - Easier Done Than Said - Public Round
[Re: Sealeopard]
GargoyleGargoyle
MM club member
Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Here is my extremely bloated code:
Code:
Function EDTS($)
Dim $v,$c,$t,$Y,$z,$b,$e
$V = split("a e i o u")
$C = split("b c d f g h j k l m n p q r s t v w x y Z")
$b = "<"+$+"> is "
$e ="acceptable."
For each $z in $V
If instr ($,$z)
$T = 1
EndIf
Next
For $y = 1 to Len($)
If ascan($v,Substr($,$y,1)) => 0 AND ascan($v,Substr($,$y+1,1)) => 0 AND ascan($v,Substr($,$y+2,1)) => 0
$T = $t + 1
EndIf
If ascan($c,Substr($,$y,1)) => 0 AND ascan($c,Substr($,$y+1,1)) => 0 AND ascan($c,Substr($,$y+2,1)) => 0
$T = $t + 1
EndIf
If substr($,$y,1) = substr($,$y+1,1)
If substr($,$y,1) <> "e" AND substr($,$y,1) <> "O"
$T = $T + 1
EndIf
EndIf
Next
If $T = 1
$EDTS= $b + $e
Else
$EDTS= $b + "not " + $e
EndIf
EndFunction
_________________________
Today is the tomorrow you worried about yesterday.
#191111 - 2008-12-1309:03 AMRe: KiXgolf - Easier Done Than Said - Public Round
[Re: Allen]
GargoyleGargoyle
MM club member
Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Allen I do appreciate the comments. It does help to find new ways to think about things.
What I would like to have some one do, maybe on the new one, is with each step of the process to document why they did what they did. As you can tell in my code, I still am stuck with not knowing many of the shortcuts that are available.
It may just be the way that I think as well ... you know sort of like 10000000 = 128
_________________________
Today is the tomorrow you worried about yesterday.
Function EDTS($c)
dim $,$a,$b,$d,$e,$p,$t
for $t=0 to $c^0
$=substr($c,$t+1,1)
$b=$b|$d+$e=3|$<>e&$<>o&$=$p
$p=$
$EDTS="<"+$c+"> is "+iif($a&~$b,a,"not a")+cceptable.
if instr(aeoiu,$)
$d=$d+1
$e=0
$a=1
else
$e=$e+1
$d=0
EndFunction
_________________________
It's better to have scripted and died, then to never have scripted at all