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.
Code:
#!/bin/bash

xmessage 'spin the dials to convert 333 to 221'
r=2
c=2
l=2
moves=''
M=(x L R)
while true
do
  xmessage -buttons 'LEFT PAIR':1,'RIGHT 2':2,exit:0 $(( l+1 ))$(( c+1 ))$(( r+1 ))
  outcome=$?
  if [[ $outcome == 0 ]]
  then
    break
  fi
  if [[ $outcome == 1 ]]
  then
    l=$(( (l+1)%3 ))
  else
    r=$(( (r+1)%3 ))
  fi
  moves=${moves}${M[outcome]}
  c=$(( (c+1)%3 ))
done
xmessage $(( l+1 ))$(( c+1 ))$(( r+1 ))
echo $moves