[Home] [Puzzles & Projects] [Delphi Techniques] [Math topics] [Library] [Utilities]
|
|
Problem DescriptionRequired: A program which will generate and print the "truth-table" grids which accompany most puzzles in Logic Puzzle books and magazines. Background & TechniquesThe generated grid actually a set of sub-grids where the cells allow entry of match/no-match values each item of each category with each item of each other category. So if two guys are dating two girls, then clues like "Bob's date is Blonde." and "Betty is a Brunette." are enough to let us solve the puzzle. (I use the letters "T" and "F" for True and False). When the puzzle is solved, each column and row of each sub-grid will have exactly one "T"
Printing the grids might be useful if you don't want to spoil the fun for someone else by writing in your magazine. Also, "Geo-Cachers" frequently get logic problems without the grid being provided and it was one of those guys that requested this program. Grid values may be saved and reloaded later. Multiple copies of the grid (up to 4) may be printed on a page. Non-programmers are welcome to read on, but may want to jump to bottom of this page to download the executable program now. Programmer's Notes:Technical issues addressed in this program include:
If you dig into the code, be aware that the Categories and Items described here are referred to as Variables and Values within the code. The Category/Item nomenclature seems to better convey the meaning of those field for non-math majors. Finally, the program uses the AdjustGridSize procedure from in our DFFUtils unit in the DFFLibV14 zip file available for download here. If you haven't already done so, you will need to download the library file before recompiling this program
Running/Exploring the Program
Suggestions for Further Explorations
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2018, Gary Darby All rights reserved. |