Kakuro (Cross sums) solver and generator(repost)

キャンセルされた 投稿 Aug 11, 2006 着払い
キャンセルされた 着払い

We need C++ code to generate and solve Kakuro puzzles.

Generator Requirements:

* Must be able to generate puzzles in these sizes: 6x6, 7x7, 9x9, 12x12, 14x14

* Must be able to create according to difficulties: Easy, Medium, Hard

* All puzzles must have a unique solution, and preferably be solvable using pure logic.

* Must be able to generate the largest puzzles (14x14) within a couple of minutes

Both generator and solver should be coded in C/C++ and so that we can call it from our code, like for example:

*char *puzzle = generateKakuroPuzzle(int width, int height, int difficulty)*

Preferably, the string returned by the generate function uses the following format (this is from a 6x6 puzzle):

000000029059018534003210092100051000

where 0 denotes an empty block or a sum, and any number denotes the correct number for any block. In other words, the string contains only the answers, not the sums. We will calculate the sums ourselves from these numbers.

The solver should be able to solve puzzles in the above mentioned sizes, and should be able to determine if a puzzles has multiple solutions (does not need to count the number of solutions).

The call to the solve function might look like this:

*char *puzzle = solvePuzzle(int sumsHorz[][], int sumsVert[][], int width, int height);*

Return format can be the same as the generate function (only correct numbers, no sums).

The arrays sent to the solve function will hold the vertical and horizontal sums of a board. Blocks without sums will have the value 0 in these arrays, empty blocks ("black" blocks) will have the value -1.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

C/C++, Windows.

エンジニアリング マイクロソフト MySQL PHP ソフトウェアアーキテクチャ ソフトウェアテスト ウィンドウズデスクトップ

プロジェクトID: #3716073

プロジェクトについて

リモートプロジェクト アクティブ Aug 11, 2006