Update to “Solving Boggle-type word games in Python”

Update to “Solving Boggle-type word games in Python”

I recently updated the code in my post “Solving Boggle-type word games in Python” to run under Python 3.1.  The previous code ran under 2.6 and there were a few breaking changes between versions.

The breaking changes I encountered:

  • print is now a function call
  • raw_input replaced with input
  • No more .has_key() in dictionary objects, instead use in
  • sorted parameters change

I also wanted to share a link to a good word list that I found.  I found that if you look for word lists for Scrabble or cross-words they are generally pretty good for Boggle.  The word list I used was at  http://www.infochimps.com/datasets/word-list-100000-official-crossword-words-excel-readable

Download the new boggle python 3.1 source code.  I found Fun with Words was a great site for demonstrating the code.  My username from the screenshot below was “Rainyday” if you couldn’t tell.  Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>