Skip to content

Instantly share code, notes, and snippets.

@dchacke
Created September 24, 2021 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dchacke/4853588a03229ca8e7dd415742cac412 to your computer and use it in GitHub Desktop.
Save dchacke/4853588a03229ca8e7dd415742cac412 to your computer and use it in GitHub Desktop.
How can a dog change his mind about treats when he hears bath water without being conscious?
let wanting_treat = true;
while (wanting_treat) {
move_toward_treat();
if (hear_bathwater()) {
wanting_treat = false;
back_away();
}
}
// See any consciousness in this code?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment