It's a solved problem, but I actually prefer a simple web UI.
An 80-Cent Robotics Hack: Challenging Asimov’s Laws in Half an Hour Understanding Asimov’s Three Laws of Robotics Isaac Asimov’s iconic ...