4 ms·
If you want to get kids engaged, Minecraft is the best learning environment out there. You can get a computer that runs Lua in the game, and that thing can int
by astrodust 8y ago
If you want to get kids engaged, Minecraft is the best learning environment out there.
You can get a computer that runs Lua in the game, and that thing can interact with devices and the environment.
You can write a couple of lines of code that spawns pigs. From there anything's possible.
Subjecting someone to the ridiculously spartan environment that is the READY prompt is the polar opposite of encouraging.
- bdamm 8y agoInteresting... I had no idea Lua was in Minecraft.
- astrodust 8y agoThere's a number of mods for Minecraft that put Lua into the mix. One I was using (ComputerCraft?) had all the common UNIX commands implemented as things like ls.lua, so typing "ls" actually just ran a Lua script with the corresponding name. You really couldn't get a more hackable computer. These instances can have 4-16MB of memory allocated to them which honestly is way more than is necessary. They can make remote HTTP calls. With the right server settings they can even adjust the in-game weather to match the real world. The possibilities are literally endless. A few lines of code can produce immediate results, and you can iterate and expand on that to make elaborate systems.
- dvfjsdhgfv 8y agoUnfortunately ComputerCraft is no longer developed, even though you can still use it on an older version of the game.
- wilsonthewhale 8y agoOpenComputers is actively developed though, and arguably a more fleshed out Lua mod than CC