Rotating Binary Trees

Can you match the bottom tree with the top tree by performing tree rotations?

Click nodes in the bottom tree to rotate them upward.

Number of Nodes:
Seed (Optional):

(The seed of the current game is: )

Credits: This software was originally designed as a Java applet by Michael Goldwasser. The current version of this software was implemented in 2015 by Nick Lewchenko using Haskell with the JQuery and Canvas libraries from the GHCJS project as well as the Reactive-banana library. The source code for the project is hosted at https://github.com/RoboNickBot/interactive-tree-demos.