Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design A Configuration API #32

Open
cycomachead opened this issue Jul 10, 2017 · 0 comments
Open

Design A Configuration API #32

cycomachead opened this issue Jul 10, 2017 · 0 comments

Comments

@cycomachead
Copy link
Member

cycomachead commented Jul 10, 2017

Related to #29

Mostly, I think it should be as self-contained as possible.

Import snap-autograder.js and then that's all you'd need.

let autograder = new Autograder(config)

autograder.runAllTests()

config = {
    callbacks: {}, // TODO
    previousSubmission: (??, ??) => { return snap_xml },
    bestSubmission: (??, ??) => { return snap_xml },
    logSubmission: (submissionLog, serializedXML) { return result? }
}
@cycomachead cycomachead changed the title Reduce the loading configuration needed on the Snap! HTML file Design A Configuration API Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant