For my Physical Computing midterm assignment, my partner Annie (Se Young) Kim and I made a Prisoner’s Dilemma game (working title: The Slapper’s Dilemma). I said that I really wanted to make a slapping machine and Annie was totally down. First we made a prototype with LEDs:
The two green lights meant that both players were choosing to remain silent (and would each receive a light slap). When one player confesses, the other player’s light turns red (meaning that the silent player would get a hard slap, but the confessor doesn’t get slapped at all). When both players choose to confess, both lights turn red, because both players get a hard slap.
Next we made a prototype using servo motors. We also adjusted the code because we wanted players to make their choice and then get slapped, instead of having the button push and slap happen at the same time. We used state change detection and also added a delay. Every 10 seconds, the Arduino would check if each player had chosen to betray or stay silent, and the appropriate slaps would be triggered. Here is what the motor prototype looks like. In the video, each player first receives a quick slap for pressing the silent button. When both players hit the betray button, each receives a long hard slap:
Annie also built a pretty interface in which we wanted to mount the prototype, but every time we tried a different wire came loose and we had to give up:
Takeaways: It would have been nice to use more powerful motors with giant slapping hands for greater effect. The small cardboard hands that Annie laser cut from cardboard were adorable, but kind of pathetic. Also, the next time I try to create any kind of game, I am soldering down every damn wire. Breadboards are not the way!