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)!
The latest stats show no "game-win" events :P It might just be a matter of time though.
EDIT: oops, there was a bug in the win/lose tracking so I probably missed out on a few wins. I fixed it now, so it should hopefully track it if someone else wins!
This would be cool. I think winning in the fewest moves would be the most impressive. i.e. how few tiles you 'waste'. Though winning with the lowest score may approximate this.
Each turn, one 2 tile is added, and other tiles may be combined. So you can derive the move count by adding together the numbers on all the visible tiles and dividing by 2.
This is inaccurate, because you have a 10% chance of getting a 4 tile added instead of a 2. That part makes the game tricky, because otherwise you could optimize every solution like an algorithm without ever losing.
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
Comments (410) 175 threads
Show all comments
Showing thread 1 of 175
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)!
EDIT: oops, there was a bug in the win/lose tracking so I probably missed out on a few wins. I fixed it now, so it should hopefully track it if someone else wins!
http://i.imgur.com/nf25AVZ.png
Continue this thread — 12 replies
Continue this thread — 1 reply
I refuse to do these calculations in my head...
The author should do this, and create a counter of moves within the app.
Continue this thread — 1 reply
Continue this thread — 1 reply
http://imgur.com/9FckZVX
Continue this thread — 1 reply
At least I don't have to spend any more time on it.
My simple strategy was to keep the biggest blocks in a corner at all times.
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