Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Coffee Shop Puzzle  (Read 1401 times)
0 Members and 2 Guests are viewing this topic.
Offline zeroone

Sr. Member
**

Posts: 295
Medals: 10



« on: 2009-01-25 16: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

Jr. Member
**

Posts: 95
Medals: 2



« Reply #1 on: 2009-01-25 16:59:16 »

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

JGO Kernel
*****

Posts: 2092
Medals: 10


Mojang Specifications


« Reply #2 on: 2009-01-25 17: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! Go get 'em!
Offline toasten

Jr. Member
**

Posts: 56



« Reply #3 on: 2009-01-25 18:05:09 »

Yeah very nice graphics.
Perfect at try number 3.

But one Point to mention: How to Restart  Wink
Offline steveyO

Sr. Member
**

Posts: 310
Medals: 4



« Reply #4 on: 2009-01-25 18: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!).

www.bullsquared.com   Play java (applet) games! www.chessclockpro.com Free Online Chess Clock
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.094 seconds with 21 queries.