combination lock game

This combination lock has 3 wheels each with positions, 1, 2, and 3. The wheels are somewhat dependent, however. Mod 3 either the left 2 or the right 2 increment together. Here's a bash script to play the game: starting with 333 make 221.