Fwd: Possible puzzle for Python Calgary

8 views
Skip to first unread message

David Glass

unread,
Jan 11, 2011, 12:04:40 PM1/11/11
to python...@googlegroups.com
I think Greg sent out my solution, rather than the puzzle, so don't look at the twister.py source if you want to solve it yourself  first. You didn't look, did you? :-) What you need for your own solution are the attached files for the word list and the runner script that would call your solution. That is, create your own twister.py based on the interface used in twister_runner.py.

combined_words.txt.zip
twister_runner.py

Jerry Seutter

unread,
Feb 2, 2011, 4:07:02 PM2/2/11
to python...@googlegroups.com
David, you better try that Grolsch soon before it goes bad. :)

I finally got around to trying to solve your problem.  Figuring out how to generate all possible combinations threw me for a loop (teeheehee) for a bit. :)  It's the kind of thing where I go "oh, that's easy" and never actually do it.

It runs quite a bit faster than your first run but slower than your second run, probably because I'm doing the slow solution on faster machine.  Doesn't Python have a way to count how many machine cycles it took a subroutine to run?  

Jerry

On Tue, Jan 11, 2011 at 10:04 AM, David Glass <david...@gmail.com> wrote:
I think Greg sent out my solution, rather than the puzzle, so don't look at the twister.py source if you want to solve it yourself  first. You didn't look, did you? :-) What you need for your own solution are the attached files for the word list and the runner script that would call your solution. That is, create your own twister.py based on the interface used in twister_runner.py.

--
You received this message because you are subscribed to the Google Groups "calgary python user group" group.
To post to this group, send email to python...@googlegroups.com.
To unsubscribe from this group, send email to pythoncalgar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pythoncalgary?hl=en.

David Glass

unread,
Feb 2, 2011, 10:27:20 PM2/2/11
to python...@googlegroups.com
I too had a solution to generate all the possible combinations, but it was a lot slower, especially as word length increased.
Reply all
Reply to author
Forward
0 new messages