Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. # Import Robot class to use the methods within
  2. from Robot import *
  3.  
  4. # Create Robot1 object with arguments
  5. Robot1 = Robot.one_string('Altman-X27-Cobalt')
  6.  
  7. # Call the robotInfo function using the Robot2 object
  8. Robot1.robotInfo()
  9.  
  10. # Set state variable equal to return value from check class
  11. state = Robot.check()
  12.  
  13. # Call methods depending on value of state
  14. if state == 'Y':
  15.     Robot.sleep()
  16. elif state == 'N':
  17.     Robot.fetch()
  18. else:
  19.     print('Error, invalid percepts.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement