Live data from Hacker News

2048 in the terminal

github.com

41–50 of 90 posts

Re: 2048 in the terminal

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

Yeah, it is as simple as changing every single mention of 2048 in the source code to 4096. My friend actually tried that and it was... a lot harder than 2048. (The 2048-AI fails to make 4096 for most games, for example.)

https://github.com/youknowone/4096

Re: 2048 in the terminal

#45

This game has a 50/50 chance of spawning a 4 or a 2. I believe the original is only 10% chance of spawning a 4, was this intentional?

I didn’t know about the 10% rule, I should check the original source code and use the same probability.

Re: 2048 in the terminal

#46
post #45

This game has a 50/50 chance of spawning a 4 or a 2. I believe the original is only 10% chance of spawning a 4, was this intentional?

I didn’t know about the 10% rule, I should check the original source code and use the same probability.

I submitted a pull request

The original source is here: https://github.com/gabrielecirulli/2048/blob/master/js/game_...

(line 62)

Re: 2048 in the terminal

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

I'd like to see a version that has a slightly bigger grid. So apparently there is a market for alterations.

Re: 2048 in the terminal

#48
post #35

Awesome, we have a multiplayer version, a bot version, a terminal version, what's next? Who's gonna make the flappy bird version?

Pure-CSS-zero-lines-of-javascript version.

2048-as-a-monad version.

2048-as-a-jquery-plugin version.

Re: 2048 in the terminal

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

Re: 2048 in the terminal

#50
post #19
post #14

Love it! Is there a way to change the colors? 4 is Incredibly hard to read in my terminal

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.
Post reply on HN