Instructions for Dave's Logic Macintosh and Windows Dave's Logic by D F Curran ©Copyright 1999 D F Curran This program was created with Metrowerks CodeWarrior and Metrowerks PowerPlant ©1993-1997 Metrowerks, Inc. The 68K Macintosh program was created with Symantic C++ 6.0. © Copyright 1993 Symantic Corp. WARRANTY DISCLAIMER D F CURRAN PRODUCTIONS DISCLAIMS ALL WARRANTIES RELATING TO THIS SOFTWARE, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND ALL WARRANTIES ARE EXPRESSLY AND SPECIFICALLY DISCLAIMED, NEITHER D F CURRAN PRODUCTIONS, NOR ANYONE ELSE WHO HAS BEEN INVOLVED IN THE CREATION, PRODUCTION, OR DELIVERY OF THIS SOFTWARE SHALL BE LIABLE FOR ANY INDIRECT, CONSEQUENTIAL, OR INCIDENTAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE SUCH SOFTWARE EVEN IF D F CURRAN PRODUCTIONS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR CLAIMS. IN NO EVENT SHALL D F CURRAN PRODUCTIONS LIABILITY FOR ANY DAMAGES EVER EXCEED THE PRICE PAID FOR THE LICENSE TO USE THE SOFTWARE, REGARDLESS OF THE FORM OF CLAIM. THE PERSON USING THE SOFTWARE BEARS ALL RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE. Some states do not allow the exclusion of the limit of liability for consequential or incidental damages, so the above limitations may not apply to you. This agreement shall be governed by the laws of the State of Montana and shall inure to the benefit of D F Curran Productions and any successors, administrators, heirs, and assigns. Any action or proceeding brought by either party against the other arising our of or related to this agreement shall be brought out in a STATE or FEDERAL COURT of competent jurisdiction located in Missoula County, Montana. The parties hereby consent to in personam jurisdiction of said courts. License for registered versions is for one computer. Program will not be registered if transferred to a different computer. Beginning: To understand how the puzzle writing/solving is approached you should first read "Make Money Writing Logic Puzzles" a copy of which is included with this file before continuing with the instructions. You will also need an internet connection to connect you to the example puzzles at http://members.aol.com/dfcurran/logic/logicpuz.html. The example puzzles are in the file "May 1999". The program "Dave's Logic" in the Macintosh and "DfcLogic.exe" PC, is a text interpreter. The program understands a number of text commands saved in a "text only" file. Any word processing program which allows you to save a file as "text only" or "text export", etc. will work with the program. Running the program: Macintosh: The Power Macintosh is a text editor which brings up a template page to fill in with your puzzle. You may save it or print it or both. Recommend you save often. To solve a puzzle use Apple R. It will run the program you've typed in. Use Apple W to close windows. If you hit Apple Q the program will exit. The Macintosh 68k program does not have a text editor. You must use the template to create your own with a text editor that can save files in text only format. This program should run on any 68K Mac system 6 or later. (I did not make a fat binary application as the one I made would not run on my old SE30 on system 6.07. This 68K program does run on older Macs. ) The opening screen is a dialog box. DO NOT CHANGE ANYTHING ON THE STARDARD INPUT SIDE. This must be CONSOLE. If you click the file button on the INPUT side the program will crash. On the output side you may chose, console, file, file and console or file and printer. If you choose printer the program will provide a print window after the program has quite. Make sure you chose file if you wish to save your results. Once you've made your choices in the dialog--hit okay. From then on the program has a itself has one command: You enter the name of the text file you've entered your data in and wish to solve. The file must be in the same folder as the program. You enter the name of the file and the program runs. For 68k you'll need a separate text editor to run the program. Windows: The Windows program has two commands: You enter the name of the file you wish to solve. The file must be in the same folder as the program. Then the program asks the name of the file you wish to put your results into. When you enter the name of the file you wish to write results to the program runs. You then need to open the results file with your word processor to view the results. Choose courier type to view the table correctly. Both Mac 68k and Windows: When the program finishes you will be asked for another file name. Power Mac Results are put in a "Whatever name you used".out window. Do not use ".out" in a file name you wish to solve. ".out" is reserved for output windows. The program solves the topmost, or last opened window. To make sure the window you are working on is the topmost window, save the file before solving. Power Macintosh: To Quit enter Apple 'Q'. Enter Apple W to close a window and work on something else. You will be asked if you wish to save the file. There is a 32K limit on data in the open file. If you wish to save the results use Command 'S' before collecting 32k of data. Try running the program and enter "packrat". Windows: To Quit enter 'q' and return. If the program doesn't quit, click on the close box, and choose Windows force exit. Try running the program and enter "packrat". Making up a text file to run in the program: To make up a file to check you'll need a word processor. Any word processor that can save as text will work. Make sure you always save your puzzle solving files as text only. Open the text file "packrat" in the Macintosh or "packrat.txt" in a PC file which should be in the program file. /* means the opening of a comment block. The corresponding close of a comment block is */ Anything between a /* and a */ will be ignored. /* Because this is between an comment block opening and a comment block close this will be ignored */ Here is an example from "packrat" or "packrat.txt" /* * * * Packrat Puzzle * *********************************************************/ The above is not read by the program. You can use /* */ to add comments to the program. You don't wish the program to read. HOWEVER you MUST NOT nest comments /* This is a comment /* This is a nested comment */ This will confuse the program if you do this */ You MUST make sure that every /* has a corresponding */ POWER MACINTOSH ONLY: Another way to comment out lines is with the '<' and '>' characters. Anything between these characters will be disregarded. Every < must have a corresponding > Another way to make comments is to use // Anything on a line following a // is ignored. //this line is ignored You may use // within a comment block. /* //This will not bother the program */ The first important line you must use is "#variablesStart" #variablesStart and the variable list MUST BE THE FIRST DATA INFORMATION YOU PUT INTO YOUR PROGRAM. ANYTHING PRECEDING IT WILL NOT BE READ. #variablesStart Tells the program that you are about to begin the variables groups that it must compare. The word "#variablesStart" MUST BE IN THE PROGRAM ONLY ONCE Everything except items commented out after #variablesStart will be read in as a variable until reaching #variablesEnd The following is an example from packrat #variablesStart //items Pen Key Dime Knife Compass //Location Bed Stove Trash Nest Outhouse //Time 9AM 10AM 11AM Noon 1PM #variablesEnd #variablesEnd tells the program that you have ended your entry variables. You can write the variables in other ways //Items Pen Key Dime Knife Compass is okay too. So is //items Pen, Key, Dime, Knife, Compass By the way the only characters the program can read are: The letters 'A' through 'Z', and 'a' through 'z' The characters '#' and '-' and '_' The digits '0' through '9' And a period '.' Everything else it reads as the end of a word. For example, it does not read comma's ',' and takes them as the end of a word. PEN@208 would be read as two separate words Pen and 208 . PEN,KEY