Make the frogs jump until the pattern is reversed. Click on Help for the rules
puzzle
Wonderful game, I learned two good techniques from this: 1) Providing Help via Show/Hide a book 2) checking for the winning position by moving through the winning spaces. I was trying to do this with "hidden" objects that covered the winning combination, but you method will work much better for my Sudoko project. Thanks!
Here are the 2 answers with 10 moves found by Squeak prolog ! Grenouilles ?- solution(s,10). [['-','r','r','r','g','g','g'], ['r','-','r','r','g','g','g'], ['r','g','r','r','-','g','g'], ['r','g','-','r','r','g','g'], ['r','g','g','r','r','-','g'], ['r','g','g','r','r','g','-'], ['r','g','g','-','r','g','r'], ['-','g','g','r','r','g','r'], ['g','g','-','r','r','g','r'], ['g','g','g','r','r','-','r'], ['g','g','g','r','r','r','-']] [['-','r','r','r','g','g','g'], ['r','-','r','r','g','g','g'], ['r','g','r','r','-','g','g'], ['r','g','r','r','g','g','-'], ['r','g','r','-','g','g','r'], ['-','g','r','r','g','g','r'], ['g','-','r','r','g','g','r'], ['g','g','r','r','-','g','r'], ['g','g','-','r','r','g','r'], ['g','g','g','r','r','-','r'], ['g','g','g','r','r','r','-']] Grenouilles ?-
Voici les 2 solutions en 10 mouvements trouvées par un programme en squeak prolog Grenouilles ?- solution(s,10). [['-','r','r','r','g','g','g'], ['r','-','r','r','g','g','g'], ['r','g','r','r','-','g','g'], ['r','g','-','r','r','g','g'],['r','g','g','r','r','-','g'],['r','g','g','r','r','g','-'], ['r','g','g','-','r','g','r'],['-','g','g','r','r','g','r'], ['g','g','-','r','r','g','r'],['g','g','g','r','r','-','r'],['g','g','g','r','r','r','-']] [['-','r','r','r','g','g','g'], ['r','-','r','r','g','g','g'], ['r','g','r','r','-','g','g'],['r','g','r','r','g','g','-'], ['r','g','r','-','g','g','r'],['-','g','r','r','g','g','r'], ['g','-','r','r','g','g','r'], ['g','g','r','r','-','g','r'], ['g','g','-','r','r','g','r'],['g','g','g','r','r','-','r'],['g','g','g','r','r','r','-']] Grenouilles ?- Il n' y a pas de solutions pour 9 mouvements.
Excellent! Works perfectly. Entertains and,before you realize it, you are thinking of strategies several steps ahead.
Very nice presentation,clean and pleasant. Now the new challenge is to write a project solving the puzzle.
Enjoyable and challenging puzzle.
I did it in 10 moves
Ah, 11 moves!
Best I could do after about five tries was 14 moves. Any of you math whizzes know the minimum number of moves possible?
Thanks for your comment. Im glad to hear that my project was beneficial. Good luck with your Sudoko project. :-)
Awesome! this is one of my Favourites!
Website contents under a Creative Commons license.