ocadotechnology / rapid-router Goto Github PK
View Code? Open in Web Editor NEWA Blockly and python based educational game aimed at students age 5-14.
Home Page: https://www.codeforlife.education
License: Other
A Blockly and python based educational game aimed at students age 5-14.
Home Page: https://www.codeforlife.education
License: Other
The road ends where it shouldn't.
With bash or docker or something...
...maybe tell them how silly they are being if they do this > 10 times
So we can give the students an idea of the goals of the level and provide pointers/assistance to get them started, and teach them about the new elements.
Should be possible just to add a big ol' text field onto the level class.
This certainly seems to be the case on the iPad Mini
Currently you can put nonsensically large numbers into the repeat block (see screenshot below). The block has a validator that prevents you from putting in a negative or NaN value. It is possible to hack a different validator onto it with the below code, but perhaps there is a nicer way to do this (hopefully without having to copy the whole block definition):
var controlsRepeatBlock = Blockly.Blocks['controls_repeat'];
var originalInit = controlsRepeatBlock.init;
controlsRepeatBlock.init = function () {
originalInit.call(this);
this.inputList[0].fieldRow[1].changeHandler_ = function(text) {
var n = Blockly.FieldTextInput.numberValidator(text);
if (n) {
n = String(Math.min(Math.max(0, Math.floor(n)), 10));
}
return n;
};
};
Also, @eddarmitage noted that this would not prevent nested loops, but I'm not sure there's much we can do about those...
Please โน
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.