Programmed solutions to puzzles