Search

 Search WWW Search DelphiForFun.org

As of October, 2016, Embarcadero is offering a free release of Delphi (Delphi 10.1 Berlin Starter Edition ).     There are a few restrictions, but it is a welcome step toward making more programmers aware of the joys of Delphi.  They do say "Offer may be withdrawn at any time", so don't delay if you want to check it out.  Please use the feedback link to let me know if the link stops working.

Support DFF - Shop

If you shop at Amazon anyway,  consider using this link.

We receive a few cents from each purchase.  Thanks

Support DFF - Donate

If you benefit from the website,  in terms of knowledge, entertainment value, or something otherwise useful, consider making a donation via PayPal  to help defray the costs.  (No PayPal account necessary to donate via credit card.)  Transaction is secure.

Mensa® Daily Puzzlers

For over 15 years Mensa Page-A-Day calendars have provided several puzzles a year for my programming pleasure.  Coding "solvers" is most fun, but many programs also allow user solving, convenient for "fill in the blanks" type.  Below are Amazon  links to the two most recent years.

(Hint: If you can wait, current year calendars are usually on sale in January.)

Contact

 Search DelphiForFun.org only

Background & Techniques

Here is the second little puzzle program adapted from my most recent puzzle book acquisition,  Giant Book of Mensa Mind Challenges , Stirling Publications, 2003.

The operation of the program is simple:  Drag digits to the circles until the conditions are satisfied.  Clearly, since there are nine digits and only seven circles, some of the circles will contain two digits.  Drag and drop digits on the left or right side of the circle, depending whether you are setting the left or right digit.

The solution is not included as part of the program but if you really get stuck, I have included it as a sample problem with our Brute Force problem solver which uses exhaustive search to find solutions for a given set of equations and values.

From the programming point of view, the coding techniques are similar to those used in the Added Corners puzzle, the only real complication being the requirement to keep track of the possibility  two digits in a circle and evaluating them appropriately when forming sums.

Addendum Sept 21, 2010:   Here's Version 2 version with a "Hint" button added.  Each click will remove an entry in the incorrect position or briefly show an unplaced number in the its correct location.