Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (292)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Coffee Shop Puzzle  (Read 1627 times)
0 Members and 1 Guest are viewing this topic.
Offline zeroone
« Posted 2009-01-25 22:10:16 »

The application may take a while to launch (5--15 seconds) as the graphics are rendered.

http://meatfighter.com/j4k2009/coffeeshoppuzzle/

The coffee shop puzzle is a variation of a classic computer science problem.  Don't mention which one here to keep it interesting.  Grin  Some people can think through the problem and solve it in seconds.  Others will remain baffled for hours.  Ideally, work out a strategy in your mind and carefully execute it.  Don't rely on paper and certainly don't code up a program to solve for you.  Post a screen shot if you're the first to solve it.  Good luck!   Smiley
Offline Hsaka
« Reply #1 - Posted 2009-01-25 22:59:16 »

Very cool!!
Took too long Grin
Gonna try again.
Offline Markus_Persson

JGO Wizard


Medals: 8
Projects: 19


Mojang Specifications


« Reply #2 - Posted 2009-01-25 23:54:34 »

Awesome graphics! =D
I don't know what strategy I'm supposed to use, but I solved it the second time I tried it. The first time, I got the smallest cup to the center tile instead. Wink

Fun

Play Minecraft!
Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline toasten

Junior Member





« Reply #3 - Posted 2009-01-26 00:05:09 »

Yeah very nice graphics.
Perfect at try number 3.

But one Point to mention: How to Restart  Wink
Offline steveyO
« Reply #4 - Posted 2009-01-26 00:53:02 »

Yeah very nice graphics indeed, and a nice variation of the original 'computer science problem'.    I actually wrote a java applet version last year (so could complete quite easily) but this looks loads nicer.
If I remember correctly the minimum number of moves is 2noOfCups-1, in this case 31.  If you have any free space you may consider allowing the option to choose the no. of cups (3 to 7,  7 achievable in 127 moves for the extremely bored amongst us!).

https://play.google.com/store/apps/details?id=com.bullsquared.alggame Annoying Little Gits (Android)
www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (67 views)
2013-05-17 21:29:12

alaslipknot (76 views)
2013-05-16 21:24:48

gouessej (109 views)
2013-05-16 00:53:38

gouessej (104 views)
2013-05-16 00:17:58

theagentd (115 views)
2013-05-15 15:01:13

theagentd (104 views)
2013-05-15 15:00:54

StreetDoggy (149 views)
2013-05-14 15:56:26

kutucuk (172 views)
2013-05-12 17:10:36

kutucuk (170 views)
2013-05-12 15:36:09

UnluckyDevil (179 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.064 seconds with 22 queries.