Hey, author here! I'm pretty overwhelmed that this made it to the top of HN without me even thinking of posting it here :)
I made this game as a fun weekend project, inspired by another game called 1024 (https://itunes.apple.com/us/app/1024!/id823499224) and a spinoff called 2048 (http://saming.fr/p/2048/). I did mine to add animations to the latter, which was a bit hard to play without them. I discovered Threes only today, and I had no idea it looked so similar. I searched a bit and it appears as if 1024 is also inspired by Threes, so my game is probably the last of a long chain of clones :P The code is also open-source. You can find it here: https://github.com/gabrielecirulli/2048 Feel free to ask me anything, and thanks to everyone for the attention! :) By the way, my highscore is somewhere around 6000. Admittedly, I'm quite bad at playing my own game :P EDIT: Make sure not to get addicted! EDIT 2: The game now has swipe gestures and vim keys support (added by @rayhaanj)!
I've started playing threes a week ago. Both threes and 2048 are fun to play. Except that I think in threes the challenge starts earlier in the game and every step counts and you can easily get into a deadlock.
Can't wait to see the source code and analytics. Maybe you want to add on the page the highest score :)
So addictive. You know since tiles slide to the edge it would be great if this took advantage of accelerometers to allow tile combining by tilting. I know this is a browser game but if you ever create an app using the tilt motion to combine tiles would be awesome. :)
I was reading all your "I wasted x hours on this" and I rolled my eyes - "My god, these guys fall for everything". Then I tried it. Couldn't sleep. Damn it!
Likewise. I had one game where I had a 256 block and two 128 blocks, but I ran out of room to maneuver before I could combine the 128s to another 256 and then combine the 256s to a 512.
I prefer Trip actually, it has the same rules as Threes, but it's much harder to get a high score compared to Fives. Because you only ever get 1, 2 or 3 as the new card, everything needs to be built up from there, it requires a lot more thought and planning. https://play.google.com/store/apps/details?id=ca.ginik.trip
It's similar, but different. With Threes you combine 1s and 2s to make 3s, then similar numbers to double them. Also, the tiles in Threes only shift at most one spot at a time - with this game, everything's flung to the other side of the board.
I agree, there's something satisfying about sliding all the things with just one keystroke. I wonder if it's like that desire to chuck things in parabolic arcs that made Angry Birds so popular? I actually bought Threes from the iOS App Store but I've spent much more time on this game for whatever reason.
Not many posting winning scores, so here's mine: 2048 and 20368 points
http://imgur.com/c3aHuT4 I'm not going to claim it was first try. Probably my tenth. However, I got much better at avoiding the key mistakes: - Always keep your highest number in a corner - Use the rest of that edge as a "staging area" for the components that can next double the highest tile. Work the other tiles toward the opposite corner on that side and then double them upward into the highest corner. - When you double the highest corner, you'll expose the "staging area" side. During this time, quickly work number back to fill that side so you avoid being forced to move the highest number out. - NEVER let yourself fill a 3x4 grid. This will force you to move the highest column away from the edge and will probably end the game in a handful of turns.
First of all, kudos on a well designed game. It's obvious you've made something pretty addictive, as evident by the place on HN and the responses you're getting here.
One thing I've found out is that you can pretty easily get to at least 512 or higher just by repeating the following pattern:
right + down + left + down
Try it out and you'll quickly see how it works. Any other similar pattern would also work:
right + down + right + up
up + right + up + left
left + down + left + up
I will also sometimes break the pattern to consolidate some of the larger numbers when opportunities present themselves. But other than that, I usually stick to the pattern.
Of course, it will only get you so far, because you will eventually run out of space to keep the pattern working. But it will get you past the first few thousand points (512 or higher).
Comments (410) 175 threads
I made this game as a fun weekend project, inspired by another game called 1024 (https://itunes.apple.com/us/app/1024!/id823499224) and a spinoff called 2048 (http://saming.fr/p/2048/). I did mine to add animations to the latter, which was a bit hard to play without them.
I discovered Threes only today, and I had no idea it looked so similar. I searched a bit and it appears as if 1024 is also inspired by Threes, so my game is probably the last of a long chain of clones :P
The code is also open-source. You can find it here: https://github.com/gabrielecirulli/2048
Feel free to ask me anything, and thanks to everyone for the attention! :)
By the way, my highscore is somewhere around 6000. Admittedly, I'm quite bad at playing my own game :P
EDIT: Make sure not to get addicted!
EDIT 2: The game now has swipe gestures and vim keys support (added by @rayhaanj)!
Continue this thread — 35 replies
https://developer.mozilla.org/docs/WebAPI/Detecting_device_o...
Continue this thread — 1 reply
Continue this thread — 7 replies
Continue this thread — 1 reply
Continue this thread — 1 reply
Note: shameless parody plagarism, (original: https://news.ycombinator.com/item?id=7386459), but this thread has 20x points.
Continue this thread — 6 replies
Continue this thread — 1 more reply
Continue this thread — 29 more replies
http://imgur.com/c3aHuT4
I'm not going to claim it was first try. Probably my tenth. However, I got much better at avoiding the key mistakes:
- Always keep your highest number in a corner
- Use the rest of that edge as a "staging area" for the components that can next double the highest tile. Work the other tiles toward the opposite corner on that side and then double them upward into the highest corner.
- When you double the highest corner, you'll expose the "staging area" side. During this time, quickly work number back to fill that side so you avoid being forced to move the highest number out.
- NEVER let yourself fill a 3x4 grid. This will force you to move the highest column away from the edge and will probably end the game in a handful of turns.
Final part was fast as all you need is two 128 blocks, one 256, a 512 and the 1024.
http://imgur.com/uAZYb1s
Continue this thread — 5 more replies
One thing I've found out is that you can pretty easily get to at least 512 or higher just by repeating the following pattern:
Try it out and you'll quickly see how it works. Any other similar pattern would also work: I will also sometimes break the pattern to consolidate some of the larger numbers when opportunities present themselves. But other than that, I usually stick to the pattern.Of course, it will only get you so far, because you will eventually run out of space to keep the pattern working. But it will get you past the first few thousand points (512 or higher).
Continue this thread — 4 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.