7 ms·
A command-line murder mystery
- chrismorgan 13y agoI take it using pagers would be considered cheating, under the categorisation of "text editors"?
- isxek 13y agoAre the executables listed in https://github.com/bmatzelle/gow/wiki/executables_list https://github.com/bmatzelle/gow/wiki/executables_list sufficient for use with this?
- liuhenry 13y agoYep, I was just able to do it only with cat, grep, sed, and head.
- isxek 13y agoThanks! I'll be checking this out then.
- httpteapot 13y agocd, cat, ls, head, tail, grep
- azernik 13y agoI think I would have found it painful without join and sort, though (which, also in that list).
- opk 13y agoI rarely use join and it never occurred to me. For combining the one file that had records spanning several lines, I used awk instead of grep -A as the hints suggest. Where the hints suggest a head/tail combination, I used sed. I also used sort piped to uniq in one case; combinations of those two are very often useful.
- schoen 13y agoI found it frustrating that gur vagraqrq fbyhgvba cngu qbrfa'g gryy lbh qverpgyl jura lbh'er qbar naq lbh unir gb vasre gung sbe lbhefrys. It's a really neat idea and a cool way to give people some command-line practice.
- NAFV_P 13y agoJung vf guvf? Cenpgvpr jvgu ryrzragnel pvcuref? V jnf whfg ybbxvat ng gur wnetba svyr ba RFE'f ubzrcntr, V zvtug nf jryy eha gung guebhtu ebg13 naq cbfg vg ba UA.
- GuiA 13y agoHah, I had a similar idea a few months back [0]. Of course, being the lazy person that I am, I tweeted about it, wrote about it in my ideas notebook, and never implemented anything. Checking this out right now! [0] https://twitter.com/gardaud/status/402608968029057027 https://twitter.com/gardaud/status/402608968029057027
- barrkel 13y agoIt's not a new idea. I recall a database query tutorial on the Apple Mac in the early 90s that took the form of a detective game. With clues, you gradually refined your query. I can't find any references to it now though.
- GuiA 13y agoHah, that's awesome- if anyone knows of it, would love to know the name! I'm definitely familiar with tutorials for programming languages/tools/environments using the medium itself, as you just described - but have never seen anything in game form. Further examples appreciated!
- barrkel 13y agoIn case it jogs anyone else's memory: It started out like a game. There was a grey background, then footsteps appeared, marching across the screen to gravel-crunch noises. And the queries were for guests in a hotel, IIRC.
- paragraft 13y agoI'm not sure about on the Mac, but that sounds like the MS Works 1.0 tutorial for the database component. The scenario was for a ski field where there had been a murder, and you had to whittle down the suspects based on the clues found.
- ijk 13y agoI believe the same one was available for DOS, though my memories of the details were vague. It was for either Works or Lotus 1-2-3 and was the culmination of a series of spreadsheet training scenarios.
- quantumpotato_ 13y agoAlicia Fuentes F 48 Walton Street, line 433 There's no Walton Street under streets. Same for a few others I checked. What gives?
- vacri 13y agoPerhaps you need to hire a skip tracer?
- cskau 13y agoI noticed the same thing and opened an issue: https://github.com/veltman/clmystery/issues/1 https://github.com/veltman/clmystery/issues/1
- garethadams 13y agoI guess she's not important. What let you to suspect her?
- quantumpotato_ 13y agoFirst person in the people file. Is there a bunch of gibberish?
- jwhitlark 13y agoI thought the missing streets added something. People give fake addresses sometimes...
- jameshsi 13y agothanks for sharing. this was entertaining and reminded me of http://vim-adventures.com http://vim-adventures.com
- veltman 13y agoGlad you enjoyed it!
- NAFV_P 13y agoA lot of the code that I write looks like a crime-scene.
- lost-theory 13y agoVery fun and unique. I enjoyed it a lot! My solution (spoiler alert): https://gist.github.com/lost-theory/8412918 https://gist.github.com/lost-theory/8412918
- veltman 13y agoI love this. I've been curious what a one-line solution would look like. :)
- exDM69 13y agoIncluding the .zip in the repository is a bit redundant when GitHub offers you the ability to download a zip file of a repository. Like this: https://github.com/veltman/clmystery/archive/master.zip https://github.com/veltman/clmystery/archive/master.zip https://github.com/veltman/clmystery/issues/4 https://github.com/veltman/clmystery/issues/4 - I opened an issue about it, just in case the author did not realize this.
- gatesphere 13y agoThis was fun!
- veltman 13y agoHey, I'm the one who made this. Glad you guys liked it! This one was a bit quick and dirty, done for a workshop at the Mozilla Festival last year, I'm going to try to do another installment though!
- jwhitlark 13y agoI had a lot of fun with this. I did it in Clojure, though. Thanks!