To produce this issue, try:
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.
To produce this issue, try:
in
~/generative-grading/src/rubricsampling.I think the fix is the following:
aka replace
MoveForwardwithMove, but not sure.