Recently, in my computer science class, I made a simple Hangman program in Java. The program itself isn't very useful (and my Java skills suck) , but the dictionary file (which I dumped from GNU aspell) I used might be. Also, I used the TerminalIO library for my Java program, since we are required to use it.

Download:
Main program
Dictionary
Hm, that dictionary file is not sorted alphabetically as I was expecting. Instead it looks like it's dumped directly from a more efficient storage method such as a directed acyclic word graph.

Usually you can get a (sorted) list of words like that also in the file /usr/share/dict/words. On my system, that list is about 12 times as big as the one you posted. Of course, you might not want to include long and esoteric words such as "hydroxydesoxycorticosterone" in your program. Even aspell's dictionary includes some long, not-so-common words like "andrianampoinimerina". Unless you want to have a "difficult" mode. Very Happy
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement