Show HN: 2048.cpp – Play 2048 in directly your terminal
21–30 of 48 posts
Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#22Another, in Python: https://github.com/darius/sturm/blob/master/2048.py This one animates the sliding of the pieces. The terminal input-handling might not work in your OS -- I gave up trying to find a nice cross-platform approach to that.
I wrote a terminal version of 2048 back in 2014 [1] and the input-handling works on all platforms I know of. You may want to look at the code: https://github.com/bfontaine/term2048/blob/master/term2048/k...
Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#23Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#24These projects are probably useless but very fun to make and contribute to if you feel like practising. Some stranger actually contributed to my rushed 1010 clone, it was the best feeling ever.
Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#25Earlier quoted context omitted.
> trying to reproduce what was once a tech demo of what you could do in a browser 2048 was never that, it was a shitty knockoff of Threes and remains so.
Maybe it's a knockoff, but I'd call it improved. I never liked number 3, and for me the additions in Threes look completely arbitrary. Whereas 2048 features nice, round (base 2) numbers. And I'm only half-joking. I've been working with base 2 for two thirds of my life now, so powers of two are really more pleasant emotionally to me than multiples of 3.
Repeat swipe left then down down. If the board gets stuck swipe right then down and repeat.
Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#26Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#27Very cool! I noticed Wikipedia references another app for terminal in C: https://github.com/Tiehuis/2048-cli Might be interesting to compare.
There is version written in sed, too.
Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#28Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#29Earlier quoted context omitted.
Maybe it's a knockoff, but I'd call it improved. I never liked number 3, and for me the additions in Threes look completely arbitrary. Whereas 2048 features nice, round (base 2) numbers. And I'm only half-joking. I've been working with base 2 for two thirds of my life now, so powers of two are really more pleasant emotionally to me than multiples of 3.
The problem with 2048 is that it’s not a very good game. You can solve it algorithmicly. Repeat swipe left then down down. If the board gets stuck swipe right then down and repeat.
Re: Show HN: 2048.cpp – Play 2048 in directly your terminal
#30Have we really come so far? This has to be full circle, right? First we had a wave of “see what can be done in a browser!” kind of demos. Which at the time was massively impressing, because nobody thought you could seriously use the browser for other things than documents and very slow and clicky applications. These days impressive browser-based experiences are the norm and native software is often accused of being v…