bot/boggle.py
def init_trie(self):
        """"Adds all words from the dictionary to a trie structure and returns the root"""
        file = open(DICTIONARY_FILE)
        root = trie.Node("")
        for line in file:
            trie.add(root,line.strip().lower())
        file.close()
        return root
Adds all words from the dictionary to a trie structure and returns the root
Adds all words from the dictionary to a trie structure and returns the root
Adds all words from the dictionary to a trie structure and returns the root
def init_trie(self):
        file = open(DICTIONARY_FILE)
        root = trie.Node("")
        for line in file:
            trie.add(root,line.strip().lower())
        file.close()
        return root
def init_trie ( self ) : file = open ( DICTIONARY_FILE ) root = trie . Node ( "" ) for line in file : trie . add ( root , line . strip ( ) . lower ( ) ) file . close ( ) return root
Adds all words from the dictionary to a trie structure and returns the root
Adds all words from the dictionary to a trie structure and returns the root
""""Adds all words from the dictionary to a trie structure and returns the root"""
self