In Boggle, a letter cannot be re-used within a word. For example, the word SET can be formed in the board above, but the word SETS cannot be formed since the S cannot be re-used.
Additionally, your program should read a list of boggle cubes from a file whose name is specified as the second argument on the command-line. The file contains sixteen six letter words, each of which represents a boggle cube. Your program should read in these sixteen words a choose a random letter from each one to create the initial boggle board.
Two files of legal words and a file of boggle cubes are available on the acpub system in ~rcduvall/cps100e/assign/boggle.
Your program should first print out the 4x4 grid that is the boggle playing field, then a list of legal words found within the grid according to the rules of boggle, one per line. Note that in the original game, players are allowed only two minutes to find as many words as possible. So it seems only fair to cut your program off after that time as well. Thus, we will only count the words printed by your program within two minutes of its start.