Note: Written on python 2.7.12
A quick python solution for the problem of traversing a grid of letters to find the longest word. Currently gets the list of valid words from a text file until I can find an api that will give a huge list of words, so far I have only found apis that give definitions for specific words.
To use, ./gridwords.py [--diagonal-on].
The --diagonal-on flag is to decide whether a letter's neighbors includes the letters diagonal from that letter.