Node:Running scripts, Previous:Manipulating, Up:Using



Running scripts

As well as manipulating the cube by hand as described in the previous chapter, you can also run scripts that perform automatic manipulations right in front of your eyes. Currently there are scripts available which randomize the cube, and which solve 3x3x3 cubes.

When GNUbik starts up, it reads files ending in a .scm suffix in the .../share/gnubik/scripts directory (system-wide files) and in the .gnubik/scripts directory under your home directory (personal files). These files are scheme scripts, and when they run they register themselves with the system so that items appear on the main GNUbik menu under the heading Script-fu. Making selections from this menu runs the appropriate script.