This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programming Diversions and the fly likes Cherry in glass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Cherry in glass" Watch "Cherry in glass" New topic
Author

Cherry in glass

HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Put the cherry in the glass moving only two matches.

Go on try it ?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81



The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
Bravo! Here's a harder one , I think !
Move just two matches to make seven squares.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
[/qb]<hr></blockquote>
But the original puzzle had only 12 sticks, where as there are 20 sticks in your solution!
[ August 18, 2003: Message edited by: R Manivannan ]

Mani
Quaerendo Invenietis
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hey, you try and draw overlapping matches using text! It doesnt look as good if I try and reduce it:

OK, another one: only moving two matches, make 4 equal size boxes:
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by Andrew Monkhouse:
OK, another one: only moving two matches, make 4 equal size boxes:


HS Thomas
Ranch Hand

Joined: May 15, 2002
Posts: 3404
You make it seem easy, Andrew.
One final one.
A prisoner is locked up in a castle surrounded by a moat. Logs of equal length were used to shore up the moat. Luckily two more logs were left in the castle. Using the two logs the prisoner has to make a safe bridge to cross the moat.

Imagine the logs (lines forming the outer square ) are of equal length. Use matchsticks if you have to; there are 3 matchsticks along each side of the moat.
Once he has crossed he has to make his way to an island in a lake. On the small island ,dead in the middle, is a small tree.The lake is large and deep and 300m wide and the escapee cannot swim.On the shore is another tree. He has stowed away a rope rather more than 300m long. How can he get from the shore to the island to hide away.

Imagine the lake is a larger circle surrounding the island. The full stop is the shore tree, very close to the shore.The island tree is dead in the middle of o.

regards
[ August 19, 2003: Message edited by: HS Thomas ]
 
jQuery in Action, 2nd edition
 
subject: Cherry in glass
 
Similar Threads
WA #1.....word association
JQuest question
java acts strange
Coke or Pepsi
favorite drink (alcholic or otherwise) put your recipes here