Last active
March 12, 2019 19:59
-
-
Save aaelamine/82166028e1f5f3245edef92c707eacdf to your computer and use it in GitHub Desktop.
Robot pet caring Psuedocode - Toy Example
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
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