Skip to content

MoveForward -> Move #5

@mhw32

Description

@mhw32

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions