Archive for the ‘Logic Builders’ Category
How Chinese Multiply
Ever wondered how Chinese multiply so quickly? Ravi sent me this video a while ago and I did not see it thinking it may have objectionable content! When I saw it, I was amazed!
Could you ever think of this? It’s a great maths trick. I don’t know how it would multiply 10 x 10, or for that matter any number which is a 10 multiple. Do you have an idea?
Flowing text in Multiple TextAreas
This Logic Builder is particularly for Flex developers. And as it is, I am looking for the best solution to this! So here goes!

The task is to flow a text in multiple text areas automatically. The height and width of each TextArea is fixed. There can be no scroll bars on any TextArea. When the text is overflowing (going out of the TextArea), it should be taken to the next TextArea. The application should show as many TextAreas as needed, to show the text entered.
As shown in the image, you can have a text area to enter the content, and a button. Clicking on the button should generate as many TextAreas as needed and flow the given text in them.
Hints:
- You may use a List with TextAreas as the ItemRenderes
- Adobe Documentation on Text Controls
- TextArea & TextLineMetrics language reference
Crossing the River
Ok, you have seen a few river crossing puzzles, right? Then solve this one!
Instructions:
- Help these people to cross the river, in the next screen.
- Only two people at a time, at least one adult.
- Criminal (in striped dress) cannot be left with others, without the Police.
- Mother cannot be with sons, while father is not around.
- Father cannot be with daughters, while mother is not around.
- Click on the BIG BLUE BUTTON to start!
- Click on people to get them on or off the boat.
- Click on the Red buttons to move the boat to opposite side.
For more, checkout FunGloo.
Puzzle of 65

Sneha (my sister in law) asked me to solve this puzzle. If you sum up any side, the total always comes to 65. The puzzle is to find out the pattern in this. A pattern that you can extend to any odd dimension matrix. This one is 5×5, the logic of placing the numbers will work in 7×7 or 9×9 and so on…
She took an hour to solve it, and after a week of keeping the puzzle in my bag and not solving it, I simply asked her for the solution!
Can you figure it out?
And can your sister in law figure it out?
LB : Network Strength Detector
Here’s a new Logic Builder:
Display an image with 4 bars. The more the bars, the better the network signal strength. Next to it will be a text box. Values for the current network signal strength will be provided as percentages in this text box. Multiple values will be separated by a new line. Using AJAX, submit the signal strength values to the backend and update the signal strength indicator. To determine the strength, average the last four values. If strength is 0, no bar should be highlighted. If 1 to 25%, show one bar. Two bars between 26 and 50. Three for 51 to 75. Four above 76%.
Happy AJAXing!
