Not Applicable
Not Applicable
The complete program listing of the first embodiment of the current invention are included as an appendix to this application. The sequence listing was created using the Microsoft Visual Basic 2008 Express Edition development environment, originally downloaded 10 Dec. 2007. The appended program listing referenced in the following specification is the file titled “Program-Listing-Gardner.txt” and is 49 Kb in size.
1. Field of Invention
This invention generally relates to puzzles, more specifically to that class of puzzles wherein the object is to fill in a geometric structure with indicia using provided clues and guided by placement rules.
2. Background of the Invention
Puzzles requiring the placement of numbers or symbols in a predetermined grid based on clues and guided by placement rules are common in the prior art. The present invention uniquely combines concepts previously implemented in the following three puzzles-Sudoku, Kakuro, and U.S. Pat. No. 1,121,697 to Weil (1914). The background and limitations for each of these prior art references will be addressed in the following paragraphs:
SUDOKU puzzles are well known in the prior art. Sudoku puzzles are logic puzzles that generally use numbers and a square grid (usually nine-by-nine squares). In its most common form, Sudoku groups the squares into nine boxes, each containing a three-by-three grid of squares. Clues are provided in the form of examiner-selected squares which are prefilled with correctly placed numbers. The goal of Sudoku is, given only the provided clues, to fill in the entire grid so the numbers 1 through 9 appear just once in every row, column, and three-by-three box.
Sudoku is wildly popular, but it's solving techniques are limited to those that rely only on positional logic, that is, correct answers are resolved based on the relative positions of previously determined numbers within the puzzle grid. For example, if a number ‘5’ is already placed in the grid, the number ‘5’ cannot be placed again in the same row or same column. There is no arithmetic required-in fact, it makes no difference whether numbers or any other unique symbols are used as indicia.
Another limitation is that Sudoku does not work with the diagonals formed by the grid. All attention in the puzzle is focused only on rows, columns, and three-by three square grids.
KAKURO puzzles are also known in the prior art. Kakuro puzzles are mathematical puzzles that are very similar to traditional crossword puzzles except numbers are used rather than letters and the only clues provided are the arithmetic sum of the integers in each row or column. The fundamental defining rule for Kakuro is that no integer is allowed to be repeated in any row or column. The goal of Kakuro is to fill in an entire crossword-like grid structure given only the sums for the rows and columns.
Kakuro puzzles are also very popular, but their solving techniques are limited to unique arithmetic summing-techniques that rely on excluding possibilities based on the fixed number of valid numerical combinations of the digits 1 through 9. For example, if the puzzle shows that the numbers in the two squares of a given row must add up to the number “4”, the solution numbers must by “1” and “3” (“2” and “2” is not acceptable because duplicate numbers are not allowed). It cannot yet be determined which square holds the “1” and which square holds the “3”—that information must be determined using the same process against the appropriate columns. However, the initial clue leads to the elimination of 7 of the 9 possible integers. Kakuro puzzles do not rely on positional logic directly. Although it is possible to narrow possibilities based on relative locations in the puzzle grid, the only way to confirm the location of a potential integer is to ensure it sums correctly in the appropriate row and column.
Kakuro shares the limitation described for Sudoku in that it does not recognize the diagonals that are formed by the crossword grid.
The puzzle patented in 1914 by Weil (U.S. Pat. No. 1,121,697) described a 3 by 3 grid of squares with positions for numbers in the corners of each square. Examinees are asked to place the integers 1 through 4 in the corner positions of each square (without repetition within each square) such that the sums of the rows, columns, and diagonals all add up to fifteen.
Weil's puzzle introduces two components that I have incorporated into the present invention. The first is the inclusion of major diagonals as an additional defining component of the puzzle (although Weil's puzzle did not extend to using the shorter diagonals as potential clue sources or puzzle constraints). The second technique I incorporated from Weil is to allow, in certain instances, repetition of numbers when adding them together to form given sums. Allowing multiple (up to 2) “1”s, “2”s, “3”s, or “4”s significantly increased the number of possible valid solution sets, thus increasing the complexity of the resulting puzzle.
The primary limitation of Weil's puzzle, from the perspective of the present invention, is that he did not consider the value of expanding the basic structure of his puzzle beyond squares as the basic building block. The first embodiment of the present invention demonstrates significant advantages in terms of increasing the number of techniques required to solve a placement puzzle by applying the fundamental ideas of Weil's invention to a grid of octagons and introducing additional clues based on the minor diagonals and the diamonds formed by the intersection of the octagons.
The present invention substantially departs from the more limiting designs and concepts of the prior art by incorporating all of the following solving techniques:
(a) Positional Logic, applied simultaneously within geometric shapes, rows, columns, and diagonals. Requiring the examinee to consider whether the placement of an integer in a certain position of the puzzle grid will repeat that integer in the corresponding octagon, row, column, and/or diagonal.
(b) Unique arithmetic summing. Providing clues that allow the examinee to reduce the possibilities for a given solution integer based on the limited number of valid integer combinations that add up to the clue, with no addend repetition.
(c) Non-unique arithmetic summing. Providing clues that require the examinee to determine a combination of four integers that add up to the clue, when it is possible that the integers being added may be repeated. As a lone technique, this is generally not very helpful, because the number of combinations is usually substantial. However, when this technique is combined with other techniques, it becomes an additional novel and challenging technique.
Improving the variety of techniques available to an examinee for solving a puzzle makes the puzzle more interesting, challenging, and fun. The first embodiment of the present invention meets this goal while also introducing a novel physical structure that is easy to automate, facilitating the generation of millions of unique instances of this type of puzzle, presented in a wide variety of difficulty ranges.
In accordance with one embodiment, the present invention provides a superior new form of puzzle that combines the basic concepts of key puzzles available in the prior art to form a more broadly challenging puzzle that requires a wider variety of techniques to solve
The invention will be better understood when consideration is given to the following detailed description thereof. Such description makes reference to the annexed drawings wherein:
a) is a general flowchart of the steps required to create a valid instance of the first embodiment of the present invention.
b) is a specific flowchart of the detailed steps required to create a valid instance of the first embodiment of the present invention.
a) and 7(b) illustrate two positional logic solving techniques
a) and 8(b) illustrate how clues can be combined to solve a portion of a puzzle
The present invention is described for the first embodiment and accompanying drawings. It should be appreciated that this embodiment is merely used for illustration. Although the present invention has been described in terms of a first embodiment, the invention is not limited to this embodiment. The scope of the invention is defined by the claims. Modifications within the spirit of the invention will be apparent to those skilled in the art.
With reference now to the drawings, and in particular to
An integer number 100 within the octagon 120 is an example of an integer number in its correct position. The integer number 100 in its correct position is provided as a clue for the examinee to solve the puzzle. A diagonal sum 360 in the triangles 260 is also a clue. The diagonal sum 360 is equal to the arithmetic sum of the integer numbers 100 contained in the diagonal (340, 350) originating at that triangle 260. Note that the diagonal sums 360 at both ends of each diagonal (340, 350) are the same. A diamond sum 370 within the diamonds 240 is also a clue. The diamond sum 370 is equal to the arithmetic sum of the four integer numbers 100 that share the borders of the diamond 240.
The goal of the invention, as constructed in the first embodiment, is to place the integer numbers 1 through 8 (100) in each of the octagons 120 such that no integer number 100 is repeated in any octagon 120, column 310, row 320, or diagonal (330, 340, and 350).
General Description of the Method—
a) is a block diagram illustrating a flowchart of the method used to create the first embodiment of the current invention. Although the four stages shown in the flowchart can be performed manually, it is considerably more practical to generate instances using a computer program. The source code listing for the program I used to develop and test the prototype version is included as an appendix.
The first stage, represented by block 40, is to create a valid solution by filling all sixteen octagons 120 in the puzzle grid 200 with integer numbers 100 that meet the basic placement rules of the puzzle.
In the second stage, represented by block 42, an examiner-selected number of integer numbers 100 are removed to provide a variable level of challenge for this instance of the puzzle. There are rules to this removal that must be followed to ensure the instance of the puzzle has one and only one valid solution.
The third stage, represented by block 44, is to review the puzzle and replace removed integer numbers 100 if certain conditions are met, again to ensure the puzzle has one and only one valid solution.
The fourth stage, represented by block 46, is to draw the puzzle grid 200. The puzzle grid 200 includes the octagons 120, the diagonal sums 360, the diamond sums 370, and the integer numbers 100 randomly selected to be provided as clues for this instance of the puzzle.
Having described the method in general form, each step (block 40, 42, 44, and 46) will be discussed in greater detail in the following paragraphs.
b) is a flowchart that describes additional detail for the method summarized in
The method described below is a text description of the source code used to develop and test the prototype of the first embodiment of the current invention. The source code listing is included as an Appendix.
STAGE 1: Create a Valid Solution—
A practitioner skilled in writing software programs will be able to identify multiple ways to place integer numbers 100 in the octagons 120 of puzzle grid 200 so that no integer numbers 100 are repeated in any octagon 120, column 310, row 320, or diagonal (330, 340, or 350). One option is “brute force”, whereby all possible combinations are tried until a solution is found. Another possibility is to maintain state of the loading process and be able to “roll back” when all possible integer numbers 100 are invalid for a given position. The method described below was chosen because it provided a reasonable balance between simplicity and efficiency for generating instances of the first embodiment of the current invention. It should be considered strictly illustrative and not limiting in any way.
During all of the Steps of Stage 1 (
The purpose of this step is to check for a mathematical anomaly that was discovered during the testing of the prototype of the first embodiment of the current invention. If this anomaly is present in the completed solution, the puzzle cannot be solved completely (there will be more than one acceptable solution and not enough clues to determine which of the multiple answers is correct).
If the anomaly is found, this method rejects the completed solution, clears all progress made to this point, and starts Stage 1 over again.
Successfully completing Steps (a) through (f) completes Stage 1 (
STAGE 2: Remove Integer Numbers 100 Based on Puzzle Difficulty—
Based on prototype testing of the first embodiment of the current invention, certain rules must be followed during the removal of solution integer numbers 100 to ensure the resulting instance has one and only one acceptable solution:
The method used by the program I wrote to test the prototype of the first embodiment of the current invention randomly selects and then “marks” the integer numbers that fulfill the requirements described in the previous list, so they will not be removed in the next step.
Based on the puzzle difficulty provided in Step (g), this step randomly selects integer numbers 100 to remove from the solution grid, not choosing from the integer numbers 100 marked during the previous step. The algorithm used by the program I wrote to test the first embodiment of the current invention selected randomly from all unmarked integer numbers, but modifying the algorithm is one of the primary methods for generating other embodiments of the current invention.
STAGE 3: Replace Integer Numbers 100 if Certain Conditions are Met—
Based on prototype testing of the first embodiment of the current invention, two anomalies that allow multiple acceptable solutions can occur if integer numbers 100 are removed in certain patterns. These two steps check for those conditions and replace an integer number 100 as a clue to ensure the instance of the puzzle has one and only one acceptable solution.
In the case where this condition exists in the solution grid, it is not automatically true that the puzzle will have multiple acceptable solutions. Instead, this condition is only a problem if all four of the integer numbers 100c and 100d have been removed in the previous stage. If even one of the four integer numbers 100c or 100d is replaced as a clue, this instance will have one and only one acceptable solution.
Therefore, the fix if this condition is found is to randomly provide one of the four integer numbers 100c or 100d as an additional clue for the examinee.
Based on prototype testing of the first embodiment of the current invention, removing all four integer numbers 100 of any of the four short diagonals 350 greatly increases the likelihood that the instance will allow multiple acceptable solutions.
This step checks to see if all four integer numbers 100 have been removed from any of the four short diagonals 350, and if the condition is found, randomly replaces one integer number 100 as an additional clue for the examinee.
Completing Stages 2 and 3 (
STAGE 4: Draw the Puzzle Grid 200—
The final stage of the development of the first embodiment of the current invention is to render the puzzle in the form it will be presented to the examinee. Stage 4 includes:
The software program included as an Appendix, which I used to generate prototype puzzles for testing, also prints a solution array and instructions for solving the puzzle on each page. These additions, while useful for the testing of the prototype, are for illustration purposes only and should not be considered a required part of the current invention.
The operation of the first embodiment of the current invention is encompassed in the following directions, provided to an examinee along with an instance of the puzzle:
There are many different techniques that can be applied to solve a puzzle instance of the first embodiment of the current invention. The next section will demonstrate a variety of the techniques an examinee can use to solve an instance of the puzzle, referring to
a) is a truncated version of an instance of the puzzle as it would be presented to an examinee.
b) also demonstrates a second technique an examinee can use to find the correct position of an integer number 100. The three “3”s 100g prevent the number “3” from being in any position except circled position 100h in the third octagon 120 from the top.
a) is a truncated version of an instance of the puzzle as it would be presented to an examinee. Using
Now focus on the diagonal sum 360 with the value “17”. Two numbers in the short diagonal 350 have been determined (“8” and “6”), so the sum of the other two numbers in the short diagonal 350 must equal “3” (17−8−6=3). Choosing only from the numbers 1 through 8, there is only one possible combination, “1” and “2”. Since there is already a “2” in the lower right octagon 120, the correct combination must be the “2” in the upper left octagon 120 and the “1” in the lower right octagon 120.
A key technique for solving along medium diagonals 340 and short diagonals 350 is to reduce the candidate integer numbers 120 for that diagonal based on examining the limited number of possible combinations that can add up to a given diagonal sum 360. For example, if a medium diagonal 340 has a diagonal sum 360 equal to “31”, there are only two combinations of six non-repeating integer numbers 100, selected from the numbers 1 through 8, that add up to “31” (1-4-5-6-7-8 and 2-3-5-6-7-8). As another example, a short diagonal 350 that has a diagonal sum 360 of “11” has only one valid combination of four integer numbers 100, selected from the numbers 1 through 8 (1-2-3-5).
This “addend” technique is valid for both medium diagonals 340 and short diagonals 350. The placement of integer numbers 100 in the octagons 120 that include the diagonal (340 or 350) can often be used to determine which of the combinational possibilities is correct. This in turn reduces the options for selecting and positioning integer numbers 100 in the diagonal (340 or 350) and in the corresponding octagons 120.
Another useful technique is to narrow down candidate integer numbers 100 for a given position in an octagon 120. Several techniques for solving an instance of the puzzle are based on the combinations of numbers left in an octagon as impossible combinations are removed. For example, if two positions within an octagon 120 can be narrowed down to the same two integer numbers (say “2” and “4”), then neither a “2” nor a “4” can be in any of the other positions in the same octagon 120. This technique works for octagons 120, columns 310, rows 320, or major diagonals 330.
Computerized Embodiments. While the first embodiment has been expressed as a printed instance intended to allow an examinee to solve the puzzle using a pencil, the structure, concepts, and design principles are extremely well suited for implementation in electronic forms, including but not limited to an installed computer game, a plug-in game console, or an interactive web-based application delivered via browser, personal digital assistant, or hand-held phone. Examinee interaction with a computer-based version of the present invention would be very different, as the computer can report back to the examinee in real time if guesses are incorrect or provide a hint at the request of the examinee. Another useful feature would be an “undo” feature that allows an examinee to back out numbers to recover from a mistake.
Board Game Version. Another physical embodiment of the puzzle is as an electronic board game, with a computer engine generating puzzles and an electronic mechanism that allows players to assign solutions to empty positions in the puzzle. One possible use of such an electronic version would be for two players to alternate assigning numbers to positions on the board and being scored on whether the assignments are correct.
Alternative Algorithms. The first embodiment described in the previous sections used a fully random algorithm during the “Remove integer numbers 100 based on puzzle difficulty (42)” (
Derivative Physical Structures. It is possible that many of the same characteristics, solving techniques, and advantages attributed to the first embodiment could be inherent in similar structures based on other geometric shapes, such as squares, circles, decagons, or dodecagons. My investigations of these alternatives suggest that they are not as straightforward to work with as octagons, but it may be possible to create a derivative puzzle that follows the same general form using other geometric shapes as base components. Another variation of the physical structure is to use indicia other than numbers. For example, it is possible eight unique letters could be used instead, as long as the examiner provides a method for “summing” the letters to support the concepts of the diagonal sum 360 and the diamond sum 370.
Variable Clues. Another variation of the puzzle described in the first embodiment is an instance that removes some of the diagonal sums 360 and/or diamond sums 370. I experimented with this type of version, but I found it necessary to provide many additional integer numbers 100 in order to make up for the lost information that would have been provided by the missing clues. Even so, this is a valid alternative that could be implemented to provide examinees with a different “twist” on the basic embodiment.
The embodiments proposed above are similar to general variations that have already been applied and marketed for other puzzles that are currently popular (particularly Sudoku). For that reason, I believe the modifications and alternative arrangements described are easily understood by a person skilled in the art and are well within the spirit and scope of the appended claims, which should be accorded the broadest interpretation so as to encompass all such modifications and variations.
Accordingly, the reader will see that, according to one embodiment of the invention, I have provided a superior new form of puzzle that combines the basic concepts of several puzzles available in the prior art to form a more broadly challenging puzzle that requires a wider variety of techniques to solve.
While the above description contains many specificities, these should not be construed as limitations on the scope of any embodiment, but as exemplifications of the first embodiment thereof. Many other ramifications and variations are possible within the teachings of the various embodiments. For example, computerized versions, board game versions, different algorithms used to generate instances, variations of provided clues, and different base geometric shapes or indicia are other possible ramifications and variations.
Thus the scope of the invention should be determined by the appended claims and their legal equivalents, and not by the examples given.