Last active
September 24, 2021 03:40
-
-
Save dchacke/d06cb96db9bd29427ae480abc8630f76 to your computer and use it in GitHub Desktop.
How could a robot respond to pain without being conscious?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let incoming_electric_signal = get_electric_signal(); | |
// The electric signal could represent the temperature of whatever the robot just touched, say. | |
// The higher the temperature, the greater the number returned by `get_electric_signal`. | |
// If some threshold is passed: | |
if (incoming_electric_signal > 1000) { | |
// Detected pain! | |
say('OUCH'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment