Wednesday, December 18, 2013

Make the Finch say Something

#The following line is required for the Finch to work.
#Please replace the import line with the Finch's location.

import edu.cmu.ri.createlab.terk.robot.finch.Finch as Finch

def singing(will):
  #Have Will say the same thing twice
  for i in range (0,2):
    will.saySomething("howdy")
    will.sleep(2000)

No comments:

Post a Comment