I bet had they left "Show HN: " off, it would've gained more traction. I have several theories behind that:
1) It looks more like a discovery.
2) It doesn't look like a self promotion.
3) The point of the article is at the beginning. I.e. a certain percentage don't read past "Show HN".
Again, just theories. No idea if this is really the case. But I don't remember many (maybe any) of the other 2048 clones making it to the first page being "Show HN" submissions.
The one that's done for Atari is in assembly. I made one in Prolog last weekend as an exercise since I'm learning Prolog. I figured it was a matter of time till the variation became about language implementation.
Well, writing in sed has essentially the "heh, look what I did in sed!" value. Elisp would be a far more simple place to build it (we already have tetris there, there's even a very old simple version of Elite in emacs lisp!)
> Note for OS X users: The version of sed installed has different options than the Linux one. Notably, it does not have the extended-regex option -r. I recommend building the latest version from here: http://sed.sourceforge.net/
The option is there, just different: -E (the same as grep)
If your well-beloved GNU coreutils did not breach every POSIX standard and add new flags to every program, no such problem would exist. Seriously, I do not know whether Mac OS is using a custom implementation of UNIX utilities, or distributin BSD coreutils, but I know that it is a licensed, certified UNIX.
UNIX certification means nothing if the utils are intentionally outdated and incompatible with the de facto UNIX-like implementation due to petty licensing concerns.
At the end of the day, whether some script works is the issue, not a UNIX branding.
Author here - glad you like it! I actually found the poker hand identifier more challenging to write than 2048, but I also tried to make it as compact as possible.
38 comments
[ 4.4 ms ] story [ 94.2 ms ] threadAlso, disappointed no one has blatantly embedded https://github.com/progranism/Bitcoin-JavaScript-Miner to put all this time wasting to good u$e.
Just joking, I love these and I'm unemployed. Keep'em coming!
It was posted on HN but didn't really take off, sadly: https://news.ycombinator.com/item?id=7434529
1) It looks more like a discovery.
2) It doesn't look like a self promotion.
3) The point of the article is at the beginning. I.e. a certain percentage don't read past "Show HN".
Again, just theories. No idea if this is really the case. But I don't remember many (maybe any) of the other 2048 clones making it to the first page being "Show HN" submissions.
how am i suppose to know when i break my own record [i.e. 3012 - never got passed 512 on the tiles]
edit: you broke it :(
As a bonus, the score calculation is now done in pure sed.
If you notice any other issues, please let me know!
The gameplay should now be identical to the original 2048.
The option is there, just different: -E (the same as grep)
They are the de facto standard. Having the need to compile all these basic stuff for any scripting to be portable is a nightmare.
At the end of the day, whether some script works is the issue, not a UNIX branding.
For who is interested in other games written in sed.
http://aurelio.net/projects/sedsokoban/
Best part is he uses BSD sed. No newlines as patterns.
We use tr(1) for that.
https://github.com/themattrix/poker_hand