Just wondering why you want to make puzzles - there are zillions available and I think this site is sponsored by the author of a program that will give you all the puzzles you want.
Unless you are a hobby programmer. If so, what is your language? If QBasic, come to the classic forum at
www.qbasic.com and get help. We have written several.
If you imagine to do it yourself with pencil and paper, I've heard very skilled Japanese experts can do that. I've heard they have 81 people on a team, each one responsible for one square. (Probably just tall tales). But I don't think it is very easy. You need to be some kind of special-gifted person.
But any programmer can write a program that will do pretty good.
Mac