Wordiff: Difference between revisions
Content added Content deleted
(dictionary words of three or more characters) |
(→{{header|Wren}}: Words under 3 letters no longer valid following change in task description.) |
||
Line 568: | Line 568: | ||
var len = word.count |
var len = word.count |
||
var ok = false |
var ok = false |
||
if ( |
if (len < 3) { |
||
System.print("Words must be at least 3 letters long.") |
|||
} else if (Find.first(words, word) == -1) { |
|||
System.print("Not in dictionary.") |
System.print("Not in dictionary.") |
||
} else if (used.contains(word)) { |
} else if (used.contains(word)) { |