The Unix Game
unixgame.io
unixgame.io
TypeError: blockMap[arg].value.replace is not a function
at /home/ubuntu/unix50/web/src/webserver.js:1032:182
at Array.map (<anonymous>)
at /home/ubuntu/unix50/web/src/webserver.js:1032:50
at Array.forEach (<anonymous>)
at buildUnixCommandVertical (/home/ubuntu/unix50/web/src/webserver.js:1025:18)
at buildUnixCommand (/home/ubuntu/unix50/web/src/webserver.js:920:20)
at /home/ubuntu/unix50/web/src/webserver.js:1042:19
at Layer.handle [as handle_request] (/home/ubuntu/unix50/web/src/node_modules/express/lib/router/layer.js:95:5)
at next (/home/ubuntu/unix50/web/src/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/ubuntu/unix50/web/src/node_modules/express/lib/router/route.js:112:3)
Edit: ooh and it's vulnerable to shell command injection... and the VM has internet access. Problem reported.Part of the problem is there are hundreds of ways to use unix tools to get the correct response, so you'd need an entire shell and output parsing to prevent frustration.
http://biomediaproject.com/bmp/files/LEGO/gms/online/Mindsto...
I think that's part of the beauty!
But you could still support only some common POSIX tools, basically, the ones they've got "blocks" to pull from.
If I could type these in, I'd have a lot more fun — this way, I gave up after the intro questions because it's so time consuming.
I've found some very good interactive tutorial for Git and such, and it works very well for teaching/learning.
I'd be more bummed if a game gave me five lines of sample data which fit the constraint of "exactly one space and exactly two names", and then the rest of the data violated that constraint.
Or if some of the last names didn't start with a capital letter, like d'Azzo, for that matter.
The Unix Game - https://news.ycombinator.com/item?id=21249792 - Oct 2019 (65 comments)
1) Only the commands you need are available.
2) They are explained.
I find myself using the commands I know well. This would be a nice tool for learning command I don't know well.
First, RNA does not have T (thymine) bases, it uses U (uracil).
Second, the bases between 3' and 5' have to come in threes; the game only admits [ACGT]*, not [ACGT]{3}* (never mind [ACGU]{3}*).
Third, it treats any form of the latter, constructed purely via its block stacking, as a syntax error, which should be impossible to construct that way.
This also makes Q2 unanswerable unless you can figure out how to construct Alfred V. Aho from scratch...
BUT: 2nd question in "hello_world/" expects two last names in a very specific order. If I sort them - it considers answer to be invalid. But should it?