Source code for solving puzzles

This page allows you to download some code I wrote that does a brute force solution to the pentaminos puzzle and to the soma cubes.

Both just grind through the possibilities and print out solutions. There's also a small chunk of code that runs through the pentamino solution file and generates PostScript that will display a whole bunch of the solutions on a single page.

Feel free to do whatever you like with the code. It's all written in a very basic C.

Pentamino solver: goodpent12x5.c
Pentamino solution printer: psout.c
Soma solver: soma.c
Red/Blue Hackenbush code: hack.c

Here's some code to solve the "Sudoku" puzzle:
sudoku.c

Here's some code to play and research Mastermind:
mind.c

Return to my home page.