-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
To produce this issue, try:
python engine.py
in ~/generative-grading/src/rubricsampling.
I think the fix is the following:
def parseCommandName(s):
if s == 'Move':
return 'Move', 'Forward'
if s == 'MoveBackwards':
return 'Move', 'Backward'
if s == 'TurnRight':
return 'Turn', 'Right'
if s == 'TurnLeft':
return 'Turn', 'Left'
raise Exception(s)
def isBinaryOpperator(s):
opps = ['-', '*', '/', '+']
return s in opps
def isCommand(s):
cmds = ['Move', 'TurnRight', 'TurnLeft', 'MoveBackwards']
return s in cmds
aka replace MoveForward with Move, but not sure.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels