Live data from Hacker News

2048 in the terminal

github.com

21–30 of 90 posts

Re: 2048 in the terminal

#23
post #5

This is awesome and yet another way to kill my productivity! I noticed something that I think is incorrect behavior based on my playing of the original. If I have a row that has 2 - 2 - 4, when I press right, it goes straight to 8, rather than the behavior that I think is supposed to happen - press right once and get 4 - 4, press it again and get 8. A minor difference but does actually change the gameplay a bit.

Hi, author here, thank you for your feedback, but I can’t reproduce the bug. See https://github.com/bfontaine/term2048/commit/5ab27e181431c26... Edit: I’m on this issue, currently trying to write a test to reproduce. Edit 2: fixed!

What about the other direction? [4,2,2,0] while shifting left or up?

Re: 2048 in the terminal

#24
I'm genuinely addicted to this. I'd be very happy to pay $5 for a native 2048 iOS game – this will substitute my Flipboard use during my commute.

Re: 2048 in the terminal

#25
Thank you everyone for the feedback, I fixed the collapse bug that was reported by a few users in v0.1.6, update with `pip install -U term2048`.

Re: 2048 in the terminal

#26
post #7

A little buggy: It'll collapse 8,4,4 into 16 in a single move when the original does not. Not always, and I have no idea how to reproduce it. Maybe I should just chalk it up to accidental double-bounce on the keyboard?

This has been fixed in v0.1.6, thanks for reporting it!

Re: 2048 in the terminal

#29
post #24

I'm genuinely addicted to this. I'd be very happy to pay $5 for a native 2048 iOS game – this will substitute my Flipboard use during my commute.

There's Threes (https://itunes.apple.com/us/app/threes!/id779157948?mt=8) which is similar but not the same (since it requires a 1 and a 2 to generate a 3, which makes it slightly more troublesome. I prefer powers of 2, too, they appeal my inner nerd.
Post reply on HN