Live data from Hacker News

Show HN: 2048.cpp – Play 2048 in directly your terminal

github.com

21–30 of 48 posts

Re: Show HN: 2048.cpp – Play 2048 in directly your terminal

#22

Another, 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.

> 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...

[1]: https://github.com/bfontaine/term2048

Re: Show HN: 2048.cpp – Play 2048 in directly your terminal

#24
I did a similar thing with 1010 a while ago: https://github.com/trosh/1010

These 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

#25
post #11

Earlier 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.

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

#27
post #18

Very 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.

That was mine! https://github.com/themattrix/sed2048

Re: Show HN: 2048.cpp – Play 2048 in directly your terminal

#28
post #15

Earlier quoted context omitted.

For other telnet games, there is milek7.pl with tetris, breakout and multiplayer pong.

oh, I miss the backgammon games over telnet. Does anyone knows of any servers still online?

There's always fibs :)

telnet fibs.com 4321

Re: Show HN: 2048.cpp – Play 2048 in directly your terminal

#29

Earlier 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.

I believe that that strategy is decent but not optimal.

Re: Show HN: 2048.cpp – Play 2048 in directly your terminal

#30
post #7

Have 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…

The game that 2048 is based on is a native mobile app...
Post reply on HN