My take on Bliffoscope problem. Coded in Java has nice Swing UI.