Matches how many squares




















I ended up with an array Vertices of TVertext records representing top left corner of a cell. Each TEdge record has a TLine record with the start and end coordinates of the matchstick, a direction field East or South , and a Boolean Exists flag to tell whether the stick is present. The rightmost H record and the bottommost V record have direction set to Unknown to prevent checking nonexistent edges.

Detecting matchstick clicks uses the MouseDown event exit which scans all edges using the NearestEdge function to return the intended edge. Drawing matchsticks instead of just red or gray lines was a late addition and required lots of time to get the scaling even close to correct over multiple grid sizes.

A Cellsize value is calculated based on image size and specified number of grid rows and columns. The length of each matchstick is based on Cellsize value, allowing a little space at each end of the stick. Matchstick width MsW , match head width MhW , and match head length MhL are all trial and error values based on cell size.

Each match is drawn as a red ellipse for the head and a rectangle for the stick, overlapping the head slightly. Counting all remaining squares was not so simple. A IsSquare function checks the perimeter of each passed top left vertex and size from current column and row to the right and bottom edges If any is missing a matchstick, that combination is not a square. For Version 2, it took a while to figure out the best way to view remaining squares in larger grids.

Highlighting matchstick was not useful for large grids with small matchsticks. Solution was to use the TCanvas Copyrect method to save the grid image to a bitmap before highlighting a square whith a solde rectangle and then restoring from the bitmap after a 1.

Save and Restore were implemented as dialog units which save and restore grid configurations in configuration file HowManySquares. The current accepted answer by Jabe uses a total of 55 matchsticks. Have fun trying to beat the highscore! Move 1 matchstick to turn the donkey. Solution here. Matchstick Puzzles — fun for all ages Matchstick Puzzles We are currently developing a updated version of this puzzle page allowing you to add your own matchstick puzzles.

Please try it hereand let us know what you think by posting comments in the forums. Yes they do Cody, from bottom left - it goes up three and across three to the right, then down three and back across three to reconnect with the bottom left There are no squares that have 3squares on each of the four sides to make a 3x3 square.

The lower left hand corner has an "L" that - if divided - would be 3 squares to make the 3x3. Duh, there is one 3 x3 square, look closely- coming from the bottom left corner Yes there is one 3 x 3 square. Cody, Starting from the bottom left corner go three over and the up. I had to turn the image sideways to see it. There is a 3x3 square.

Start at the bottom left, 3up and 3 over. You'll see it. Where the heck did someone come up with 6 - 2x2's?? There are only five. Four in each corner of the single large square, and a final 2x2 in the center. However, to be argumentative - there is a final 17th square containing the square image. I think I've lost all faith in humanity.

The amount of people who can't see a 3x3 square, even after being told exactly where it is! Theres only 4 possible places for one in this square so its not exactly a trick is it. There IS A 3X3. Start in the lower left corner, count upwards 3 sticks, count across 3 sticks, count down 3 sticks, and across 3 sticks. It can't be 0 because ALL of the match sticks are inside one outer square ;- Either 1 or 15 depending on if you're counting the squares who's ends don't meet!

The answer above is correct. It is 16 squares and the 3x3 is found from the top count 3 small squares right to left and then up and down to find the 3x3. Rectangles are not classified as squares. Squares are however rectangles. I count 15 actual squares. For a rectangle to be a square all the sides have to be the same length. And now for the real hardcore crowd I go with zero as well By deff, no actual squares exist in this puzzle-. Whenver I wonder why I am doing so well in life even given the fact that I am quite lazy, all I need to do is look at comments of folks on this page and I know there are a bunch of morons out there.

There are 16 squares. I weep for our future. Well now aren't you fortunate to be doing so well. I'm sure it's totally necessary for all of us perfectly moronic strangers to know such personal information Some people here may not be great with puzzles or even logic, but at least they aren't pompous or unnecessarily rude. Way to claim douchebag of the year! Your answer is the best. I still don't understand how some people got six 2x2 squares but some couldn't find the 3x3 square.

There are also 7 tiny squares where the match heads meet. If those count then the total is Where is the logic in THAT? With all the squares, I along with most everyone else, got There is NOT 22 sqaures. There are 16 total squares. To find the 3x3 square begin at the lower left corner. Count 3 matches along the bottom then count 3 matches up then count 3 matches along the top then count 3 matches down to the lower left corner where you started at.

There's your 3x3 square. The difference is that: For example, if we use 6 matchsticks in one square then in two squares we will use 12 matchsticks. The double of one square. Question 1: How many matchsticks do you require to make 1 square?

Answer: It is 4. You have three sticks and you have to turn them into four without breaking any of them. Tuff one? It is really simple. All you have to do is to arrange those sticks so they are in the shape of the number four.



0コメント

  • 1000 / 1000