Jump to content

Word wheel: Difference between revisions

m
(Initial FutureBasic task solution added)
Line 1,528:
local fn CountCharacterInString( string as CFStringRef, character as CFStringRef ) as NSUInteger
end fn = len(string) - len( fn StringByReplacingOccurrencesOfString( string, character, @"" ) )
 
 
local fn IsLegal( wordStr as CFStringRef ) as BOOL
Line 1,535 ⟶ 1,534:
if count < 3 || fn StringContainsString( wordStr, @"k" ) == NO then exit fn = NO
for i = 0 to count - 1
if fn CountCharacterInString( letters, mid( wordStr, i, 1 ) ) < fn CountCharacterInString( wordStr, mid( wordStr, i, 1 ) )
Line 1,584 ⟶ 1,582:
woke
</pre>
 
 
 
 
=={{header|Go}}==
719

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.