Algorithm Viewer: Run / Step for Flowcharts
Makes flowcharts created with tiny_algorithm interactive for readers, in pages, course summaries, forums and quiz text.
Live demo: try the plugin on demo.codelabedu.com. Log in as a guest, or use the demo accounts teacher and student (password Demo-2026). Everything is reset every night.
What's New in v2.21.0
- Follow the teacher: the teacher broadcasts an exercise live and the students of the page can follow the teacher's algorithm and step by step run, take a copy of it, or go back to their own.
- Requires tiny_algorithm 2.32.0 or later.
Earlier: v2.20.0
- Translations: German, French, Spanish, Italian, Portuguese, Polish, Croatian, Bosnian, Slovenian, Macedonian, Slovak and Czech.
- Continue on another device: a student's changed copy of an exercise is kept on the server and comes back on another computer, tablet or browser; the newer copy wins, and Restore original removes it everywhere.
- Call tree (tiny_algorithm 2.17): every call of a recursive function drawn as a tree while the algorithm runs, with the calls repeated with the same arguments marked.
- Clean up: the copies are removed with their activity or course.
Core features
- Run / Step / Reset: the current block is highlighted, with a speed slider.
- Console with input: variable watch and generated code beside the diagram: pseudo-code and thirteen languages (Python, C, C++, Java, C#, JavaScript, TypeScript, PHP, Pascal, Visual Basic .NET, Go, Rust, Kotlin); a course can set its code language.
- Arrays panel and call tree: arrays and matrices drawn while the algorithm runs, and every recursive call drawn as a tree.
- Zoom and full screen: buttons in the corner of the diagram, Ctrl + mouse wheel and two-finger pinch.
- Runs in the reader's browser: the algorithm runs on the reader's device; long pages load diagrams as they scroll into view, and a switch shows all comments.
- Opt-in per diagram: only diagrams inserted with the Interactive option are replaced.
- Edit and test: when the teacher allows it, students edit their own copy and run the teacher's tests; the copy follows the student to another device.
- Class work: the teacher sees the students' copies of an exercise as small diagrams with their test results, in separate groups too, and shows one large on the projector.
The algorithm plugins
Requirements
- Moodle: 4.5 LTS to 5.3 (PHP as required by your Moodle version).
- tiny_algorithm: version 2.32.0 or newer. After installing, switch the filter On in Site administration, Plugins, Filters, Manage filters.
Privacy
The algorithm runs in the reader's browser and nothing is sent to external services. In exercises the server keeps the last copy each student changed (the algorithm, the page and the time), so the teacher can see the class work and the student can continue on another device; the copies are removed with their activity or course. Two display preferences and the student's copy are also kept in the browser's local storage. The plugin implements the Moodle Privacy API, which exports and deletes the copies.
Developed by Boban Blagojević. Languages: English, Serbian, German, French, Spanish, Italian, Portuguese, Polish, Croatian, Bosnian, Slovenian, Macedonian, Slovak and Czech.
Source, documentation and issue tracker:
github.com/blagojevicboban/moodle-filter_algorithm
Licensed under the GNU GPL v3 or later.