Live data from Hacker News

2048 in the terminal

github.com

81–90 of 90 posts

Re: 2048 in the terminal

#81
post #54

Earlier quoted context omitted.

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.

Thx. I have just bought it, $3. Its almost the same idea, with slightly different mechanics. The 2048 animations are much "better" imho.

Yeah, after Threes, 2048 felt a little easier, though. Enjoy Threes, I already thing it was well worth it: real moment killer without being excessively mindless

Re: 2048 in the terminal

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

There's Even on Android (https://play.google.com/store/apps/details?id=com.prasio.eve...) which uses powers of 2. It's really addictive!

Re: 2048 in the terminal

#87
post #49

Earlier quoted context omitted.

By replacing the numbers with colors you could scale it down to a pixel per piece. The tones would have to be chosen carefully, though.

A straightforward hue/rainbow progression might work. You need 11 colors to represent 2^1..2^11, so you could do {red, yellow, green, blue, magenta} * {normal, bright}, with 2048 as cyan.

Funny, I've actually been working on this today with rainbow shades and sounds on a modified board (with levels) and a more "child friendly" UI.

Re: 2048 in the terminal

#88
post #71

I hadn't used pip before. I wonder how many different package managers I have installed now? Figuring out how to install pip on OSX I discovered "easy_install" which I hadn't used before. sudo easy_install pip pip install term2048

from twitter (@gardaud): “What’s pip?” “A python package manager” “How do I install it?” “easy_install pip” “What’s easy_install?” “A python package manager”

Haha, no kidding.

It's not so bad with the right tools. In particular, "virtualenv" lets you make "environments" for python packages so you can install these things without needing root access:

- Use your distro package manager to install virtualenv

- Make a new virtual environment with: virtualenv /tmp/vv

- "Enter" the environment: source /tmp/vv/bin/activate

- You now have "pip" so you can say pip install term2048

- Play

- rm -r /tmp/vv and log out; everything's all cleaned up now.

Re: 2048 in the terminal

#89

    $ tail ~/.bash_history
    open http://news.ycombinator.com
    pip install term2048
    term2048
    term2048
    term2048
    term2048
    term2048
    term2048
    term2048
    pip uninstall term2048
Do you see what you've done?
Post reply on HN