[HN Gopher] The Unix Game
       ___________________________________________________________________
        
       The Unix Game
        
       Author : salgernon
       Score  : 79 points
       Date   : 2021-05-28 19:31 UTC (3 hours ago)
        
 (HTM) web link (unixgame.io)
 (TXT) w3m dump (unixgame.io)
        
       | moyix wrote:
       | I would love to be able to just type the command line in;
       | dragging blocks around is really slow and unnatural. But probably
       | I'm not the target audience...
        
         | bombcar wrote:
         | it reminds me of the early LEGO robotics programming setup -
         | and how NQC (not quite c) was much easier to use for those with
         | familiarity with programming.
         | 
         | 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.
        
           | EamonnMR wrote:
           | They also used that block-code setup for a game, Stormrunner
           | where you control a robot with the mindstorms block language.
           | Kind of like Logo but with sweet graphics.
           | 
           | http://biomediaproject.com/bmp/files/LEGO/gms/online/Mindsto.
           | ..
        
           | necovek wrote:
           | > 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.
           | 
           | 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.
        
         | linkdd wrote:
         | It's something I would give my interns to learn how to use the
         | command line and how it's supposed to work.
         | 
         | I've found some very good interactive tutorial for Git and
         | such, and it works very well for teaching/learning.
        
         | trey-jones wrote:
         | My thoughts exactly. Furthermore, this would be great
         | training/practice for eg. Linux Foundation certifications with
         | just the questions and "here's a terminal, go solve it".
        
       | tux3 wrote:
       | A small bug report: If I enter 0 as an input number in one of the
       | commands, I get a Javascript stack trace in the console :]
       | 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/nod
       | e_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/we
       | b/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.
        
       | howolduis wrote:
       | Can't scroll on the "Your solution" box. Browser: Firefox
        
       | simlevesque wrote:
       | That is freaking awesome.
        
       | cbsmith wrote:
       | Maybe it's just me, but I was already turned off by the use of
       | "cut" in the first question in a way that assumes all the names
       | in the file have exactly one space and exactly two names.
        
       | Lex-2008 wrote:
       | looks cool!
       | 
       | 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?
        
       | murgindrag wrote:
       | I'd like a tutorial mode, where:
       | 
       | 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.
        
       | [deleted]
        
       | bear8642 wrote:
       | Seems cool - though feel way to hide welcome pane would be nice
       | as seems unnecessary once started and no obvious way to hide
        
       ___________________________________________________________________
       (page generated 2021-05-28 23:00 UTC)