You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the complaints we got from teachers during the hackathon was that students would just copy and paste the code from the examples, and take that as a submission. Ideally, we would only show programs that has been modified to a certain point.
The text was updated successfully, but these errors were encountered:
…er adventure (#5162)
Modifies the way we choose if a program is suitable for having a tick mark in the Overview of programs per adventure table.
The process is basically this:
1. Get all of the code snippets from the yamls. For this I made a simple loop that kind of parses the markdown code, if it finds 3 consecutive backticks and then 3 more, the text found in-between is the code for that snippet.
2. For the teacher adventures, I use BeautifulSoup to parse the HTML code used to format the text in these adventures.
3. After getting all of the relevant code, and removing newlines, I compare the code from the student program with each one of the snippets. If the difference to any of the snippets is less than 10 characters, I consider the snippet not to be worthy of reviewing.
**Fixes#5161**
**How to test**
* Login as a teacher and go to Overview of program per adventure
* Login as a student in other window and copy-paste one of the example's code into the editor, and run the program.
* Check that the program isn't being shown for reviewing.
* Now in the student's window, modify the program before running it.
* Now the program should be available for reviewing.
One of the complaints we got from teachers during the hackathon was that students would just copy and paste the code from the examples, and take that as a submission. Ideally, we would only show programs that has been modified to a certain point.
The text was updated successfully, but these errors were encountered: