Hungarian Rings

The program finds a minimal series of single ring rotations
  • from the shown puzzle
  • to each configuration of the puzzle with the same number of each color of balls.
Your browser does not support Java, so nothing is displayed.
 

Click on a ball to change its color. Click on an arrow or press an arrow key to rotate a ring.
      Typing left arrow moves the left ring left, right arrow moves right.
      Typing up arrow moves the right ring left, down arrow moves right.

The minimum ring size is 5, the maximum is 33.

The minimum number of balls between the intersections is 1. The maximum number is limited so that the intersections will less than halfway around the rings.

The applet will display the number of permutations visited in each number of moves from the initial permutation.

A list of the permutations and the first way each was encountered can be viewed if you wait until the computation is finished, or cancel the computation.

The list of the permutations (or a portion thereof) can be saved to a text file if the program is run as an application.

To obtain a copy of the program that can be run as either an applet or as an application, download this zip archive.