Live data from Hacker News

2048 in the terminal

github.com

61–70 of 90 posts

Re: 2048 in the terminal

#61
post #59
post #40

You know, I wonder if we're about to see another tetris phenomenon. One of the miracles of tetris is that the game mechanics scaled from a few dots on an 80s era LCD keychain game to HDTV and surround sound. Some kind of generalized 2048 game, with different or harder goals every "level" and some tweaked mechanics and we could see another one.

Someone should create a 2048/Tetris hybrid. Match the numbers into blocks as they fall to complete larger blocks. Talk about a challenge.

This sounds like an awesome game. It might be my weekend project. I'll let you know if it happens.

Re: 2048 in the terminal

#62
post #55
post #36

Earlier quoted context omitted.

What would this offer over the official version other than "doesn't take up a tab in MobileSafari" (which could be fixed if the developer just added the right meta tags)?

- Play offline - Save game - Save score - Better UX (e.g. right now I need to refresh to start a new game) not UI and a bunch of other obvious stuff relevant to all native apps.

> - Play offline - Save game - Save score

I don’t know what is Mobile Safari support for these, but you can play 2048 in your browser without Internet connection once you downloaded the page, and you can save game/scores in localStorage.

Re: 2048 in the terminal

#63
post #49
post #40

You know, I wonder if we're about to see another tetris phenomenon. One of the miracles of tetris is that the game mechanics scaled from a few dots on an 80s era LCD keychain game to HDTV and surround sound. Some kind of generalized 2048 game, with different or harder goals every "level" and some tweaked mechanics and we could see another one.

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.

Re: 2048 in the terminal

#64
post #55
post #36

Earlier quoted context omitted.

What would this offer over the official version other than "doesn't take up a tab in MobileSafari" (which could be fixed if the developer just added the right meta tags)?

- Play offline - Save game - Save score - Better UX (e.g. right now I need to refresh to start a new game) not UI and a bunch of other obvious stuff relevant to all native apps.

The new "best score" feature is saved in localStorage, so that's now already covered. While the existing app doesn't cover all of your other use cases, those have nothing to do with being native, and you could even download the HTML and fix some of them yourselves in a few minutes: adding a cache manifest (three line text file and one attribute in the HTML) would make fully-offline possible (and when combined with the aforementioned meta tag, gives a pretty native experience, as the app at this point would work without Internet access, with its own icon and its own entry in the multitasking list). It would also be trivial to implement saving games with the web implementation, probably an addition 20 lines of JS (although the length of the game is capped, so I'm surprised you want this). As for having to reload to start a new game, I'm surprised that that matters to you: but adding a "new game" button (that could just reload the page, which would be instantaneous with the cache manifest) would also be trivial. Like, if you are willing to spend $5 on this, maybe you'd be willing to spend 15 minutes? ;P

Re: 2048 in the terminal

#66

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.

Some important differences: * the first step is explicitly 1 + 2 = 3 (which you mentioned), 1+1 and 2+2 do NOT add * You move all tiles a single space at once, rather than 'to the edge'. Note tiles only merge when they push together, so an edge or other cards restricting their movement. This is a side effect design decision of single space moving. I do not know if two pairs will merge, e.g. will 3 + 3 + 6 + 6 leave 6…

3 + 3 + 6 + 6 can't make 6 + 12 because the tiles can only move one step. The ones near the edge will merge first (depending with way you push it).

Re: 2048 in the terminal

#68
post #40

You know, I wonder if we're about to see another tetris phenomenon. One of the miracles of tetris is that the game mechanics scaled from a few dots on an 80s era LCD keychain game to HDTV and surround sound. Some kind of generalized 2048 game, with different or harder goals every "level" and some tweaked mechanics and we could see another one.

After thinking about 2048 a lot while making and refining the 2048-AI program [1], I don't think that will happen in its current form. The game has a perfect level of complexity to be engaging and interesting to newcomers, but it can be completely mastered with just a little bit of knowledge and practice. And now that the game has been out for a bit, the optimal strategies are pretty well known and easy to discover [2]. Of course, it will still be appealing to people who choose to learn it on their own, but it's certainly possible to master the game in under an hour with some help, unlike classics like tetris. In order to give the game good replayability, it will at least need some new twists like timed moves or adversarial AI or something.

[1] http://ov3y.github.io/2048-AI/ [2] http://stackoverflow.com/q/22342854/1056032

Re: 2048 in the terminal

#69
post #50
post #19

Earlier quoted context omitted.

There’s no way to have custom colors for now, but I can change the default colors. I’m on the collapse bug that was reported by a few people right now, will check back on your issue just after. Edit: I’m on it. Edit 2: I added a `--mode` option in the last version (0.1.7) to change the default colors mode. Use 'dark' on a dark background and 'light' on a light one. For now it only replaces dark blue with white on dar…

Thanks, it would be sweet if you could use the VI keys or WASD instead of arrows (would work on Windows then)and if you could use A-K instead of the decimal numbers. In that way the aspect ratio could be more square, which I think would improve the ease of noticing chains.

VI keys are supported in the upcoming 0.2.0 version.

Re: 2048 in the terminal

#70
post #40

You know, I wonder if we're about to see another tetris phenomenon. One of the miracles of tetris is that the game mechanics scaled from a few dots on an 80s era LCD keychain game to HDTV and surround sound. Some kind of generalized 2048 game, with different or harder goals every "level" and some tweaked mechanics and we could see another one.

After thinking about 2048 a lot while making and refining the 2048-AI program [1], I don't think that will happen in its current form. The game has a perfect level of complexity to be engaging and interesting to newcomers, but it can be completely mastered with just a little bit of knowledge and practice. And now that the game has been out for a bit, the optimal strategies are pretty well known and easy to discover […

I wonder if, instead of new blocks randomly showing up after you make a move, if they just showed up after a period of time. If a new block showed up right on top of an old one some kind of rule would take effect, like add them together, or the larger wins or something. As "levels" progressed, the rate these new blocks showed up would increase. The goal would probably have to be changed, instead of just getting to 2048, get to, or exceed, or come in just under some arbitrary number for the level or something.

Might add new strategy elements to the basic idea. You might not want to make a move, hoping the next blocks add to a block that's already on the board...maybe even "hint" where the next blocks will appear, but not the value. Tetris after all shows you the next block that will appear.

Post reply on HN