Sunday, April 22, 2007

Cooper likes cake
 
Posted by Picasa
Belt test
 
Posted by Picasa
Track workout
 
Posted by Picasa

Friday, April 20, 2007

duck duck GOOSE
 
Posted by Picasa

Saturday, April 14, 2007

Swing high
 
Posted by Picasa

Thursday, April 12, 2007

Sudoku Solver

I've had this code laying around for a year, so I cleaned it up a little and decided to post it.

I work with people who like to solve logic puzzles. At some point we started doing the sudoku puzzles in the newspaper. After solving a few, it was obvious to us that they could be solved programmaticlly. This led to us trying to not just solve a single puzzle, but the meta-problem of solving sudoku puzzles in general. So we challenged each other to writing sudoku solvers. One person did his in Perl in a couple hours. I wrote mine in Python as a way to start learning the language. At the time it took me more than a couple hours, but I got it working. Every sudoku I could find can be solved in fractions of a second. Not long after that, Scientific American came out with an article on The Science behind Sudoku. The article has a puzzle with the minimum number of clues that still give a unique solution (17 clues). This puzzle is the only one I've found that actually takes some CPU cycles to solve. Needless to say, once we wrote the solvers, sudoku quickly lost its appeal.

My sudoku solver source file:
sudoku.python

Some input files:
easy
hard
diabolical
sciam 17 clue

Sunday, April 08, 2007

Easter egg hunter
 
Posted by Picasa
Hunting (for Easter eggs)
 
Posted by Picasa

Saturday, April 07, 2007

Small blue flowers
 
Posted by Picasa
Resourceful
 
Posted by Picasa
Skateboarding
 
Posted by Picasa
Dance practice
 
Posted by Picasa

Friday, April 06, 2007

Found a frog
 
Posted by Picasa
Flowering Magnolia
 
Posted by Picasa

Wednesday, April 04, 2007

Other worldly
 
Posted by Picasa