Skip to content

Instantly share code, notes, and snippets.

@aaelamine
Last active March 12, 2019 19:59
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 aaelamine/82166028e1f5f3245edef92c707eacdf to your computer and use it in GitHub Desktop.
Save aaelamine/82166028e1f5f3245edef92c707eacdf to your computer and use it in GitHub Desktop.
Robot pet caring Psuedocode - Toy Example
repeat process everyday:
when it is morning time:
if the pet is sleeping, repeat:
leave for 1 hour and then come back;
until: the pet wakes up OR if the robot has left for 3 times
clean the cage and refill the food and water;
if the pet is still sleeping:
robot sends a notification to my phone: "The pet might be sick!";
when it is noon OR night time:
refill the food and water;
when it is afternoon time:
play with the pet for 1 hour;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment