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:
Here's some code to play and research Mastermind:
Return to my home page.