Sed awesome. Also, disappointed no one has blatantly embedded https://github.com/progranism/Bitcoin-JavaScript-Miner to put all this time wasting to good u$e.
2048 in sed
21–30 of 39 posts
Re: 2048 in sed
#22We just need now the 2048 in assembler, and we'll be done! Just joking, I love these and I'm unemployed. Keep'em coming!
Well, there's this: https://github.com/Sanqui/2048-gb 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.
Re: 2048 in sed
#23For who is interested in other games written in sed.
Re: 2048 in sed
#24Best part is he uses BSD sed. No newlines as patterns.
We use tr(1) for that.
Re: 2048 in sed
#25Re: 2048 in sed
#26Have someone made Emacs version? Isn't it more easy to write it in elisp compared to sed.
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!)
Re: 2048 in sed
#27I think this game is a bit different than http://gabrielecirulli.github.io/2048/ Take a look at this situation: ___________________ |___2|____|____|____| |___2|____|____|____| |___2|____|____|____| |____|____|____|____| in the original the result of going up would be ___________________ |___4|____|____|____| |___2|____|____|____| |____|____|____|____| |____|____|____|____| but in this game it's ___________________ |_…
Re: 2048 in sed
#28I think this game is a bit different than http://gabrielecirulli.github.io/2048/ Take a look at this situation: ___________________ |___2|____|____|____| |___2|____|____|____| |___2|____|____|____| |____|____|____|____| in the original the result of going up would be ___________________ |___4|____|____|____| |___2|____|____|____| |____|____|____|____| |____|____|____|____| but in this game it's ___________________ |_…
no score too! :( how am i suppose to know when i break my own record [i.e. 3012 - never got passed 512 on the tiles]
Re: 2048 in sed
#29I also like his poker hand sed script. Best part is he uses BSD sed. No newlines as patterns. We use tr(1) for that.
Re: 2048 in sed
#30I also like his poker hand sed script. Best part is he uses BSD sed. No newlines as patterns. We use tr(1) for that.
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. https://github.com/themattrix/poker_hand