Example #1
0
 def fnEvaluate(instructions):
     program = Program(instructions)
     mower = lawnmower.Mower(mowerStartLocation, mowerStartDirection)
     field = fnCreateField()
     try:
         program.evaluate(mower, field)
     except RecursionError:
         pass
     return field, mower, program
 def fnEvaluate(instructions):
     program = Program(instructions)
     mower = lawnmower.Mower(mowerStartLocation, mowerStartDirection)
     field = fnCreateField()
     program.evaluate(mower, field)
     return field, mower, program