News for hackers. Stuff that matters.
Re:Hacking Scrabble (part 1) by onemoreact on Tuesday December 13, 2011 @02:54PM (#3348934)
Comparing his approach vs yours I can't help but think a: birthdays mangle wax is easier to remember than that list.
Re:Hacking Scrabble (part 1) by fr0sty on Tuesday December 13, 2011 @03:28PM (#3349105)
But it is easier to check the the GP's solution:

    return definitions.get(candidate) != null;
vs

    foreach c in definitions(candidate.charAt(0)) {
        if c == candidate.charAt(1)) return true;
    }
    return val;
That leaves aside the general usefulness of knowing the definitions of words.