Moodle Plugins directory: NextBlocks | Moodle.org

NextBlocks
Activities ::: mod_nextblocks
Maintained by
Rui Correia
NextBlocks is a Block Programming environment integrated as a Moodle activity plugin that allows teachers to create interactive and customizable block‑based programming exercises for their students.
Latest release:
10 sites
42 downloads
2 fans
Current versions available: 1
- NextBlocks is a Block Programming environment integrated as a Moodle activity plugin that allows teachers to create interactive and customizable block‑based programming exercises for their students. To set up a new exercise, teachers first turn on editing in their course, add the NextBlocks activity and fill in the basic details such as the activity name and description.
- Under the Tests section, teachers can upload an optional text file including automatic test cases that can be used to automatically evaluate students' programs. In this file, each test case begins with a line with a vertical bar ( | ), followed by any number of lines, each line corresponding to an input. After the inputs each test case requires a line with a dash ( - ) followed by one or more lines with the expected output for that test case. An example of a test file is present in this project under the name test.txt.
- Next, in the Custom Blocks section, teachers can define their own blocks by pasting a JSON definition and providing generator code for both JavaScript (mandatory to run the program) and Python (optional, used only for block to text code translation). A hyperlink to the blockly block generator is present in this tab where teachers can create the definition and generators interactively.
- In the Block Limits section, they can specify how many times each block type may be used.
- Finally, they configure grading options such as the maximum grade and resubmission settings and then save the activity, making it available to students.
- Students open the NextBlocks activity by clicking its link in the course. They are presented with a Blockly workspace containing the permitted blocks in the toolbox on the right.
- After dragging blocks into the workspace and snapping them together, students can click Run to execute their program interactively. If the program uses input blocks, the execution will pause and a prompt will appear in the terminal to collect the input.
- On the top left of the interface students can open the block to text code translation, where they will be shown a read-only view with the automatic translation of their program to JavaScript and Python.
- To provide feedback and communication between students and teachers there is a chat functionality and a reaction bar.
- To ensure their solution meets the teacher’s requirements, students can click Run tests to compare their output against each test case (if these were made available by the teacher); the results appear in a collapsible list showing the inputs, expected output, actual output and a pass/fail badge.
- When satisfied, students use the Save button to store their work or the Submit button to send their final solution for grading.
After submission, teachers can review each student’s program and automated test grading through the activity’s grading interface. They may modify pre-assigned grades and right‑click on blocks to leave feedback. All grades and feedback are seamlessly integrated into Moodle’s gradebook, providing a complete end‑to‑end workflow for creating, solving and grading block‑based programming exercises.
Contributors
Rui Correia (Lead maintainer)
Please login to view contributors details and/or to contact them
Comments