This Useless Machine (previously) has a series of strategies to confound and distract the enemy, but knows when it’s time to give up. Jeffrey Kohler:
Useless Box with several additions: buzzer, audio output, motors and wheels, sonar, and a surrender flag.