Lurker News

Comments (410) 175 threads

Show all comments

Showing thread 1 of 175

terabytest35 replies#
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)!

iamdanfox1 reply#
Out of curiosity, I'd love to hear what your Google Analytics graphs look like! How long to people spend playing it?
terabytest1 reply#
Right now there are around 2100 people on the site and an average visit duration of around 4 minutes :)
deletes4 replies#
How many reached 2048?
terabytest3 replies#
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!

deletes12 replies#
I'm gonna call fake on this one.

Continue this thread — 12 replies

terabytest3 replies#
If that's real, congrats! I had started doubting that anybody would ever win the game :P
samstave2 replies#
Can you add in how many moves!!?
birdmanjeremy#
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.
duskwuff2 replies#
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.
jsmthrowaway1 reply#
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.

    var value = Math.random() < 0.9 ? 2 : 4;
https://github.com/gabrielecirulli/2048/blob/master/js/game_...

Continue this thread — 1 reply

samstave1 reply#
Thanks Neckbeard,

I refuse to do these calculations in my head...
The author should do this, and create a counter of moves within the app.

samstave#
eh... Sorry - I was tipsy when I posted that...
birdmanjeremy#
It took me a few tries, but it's definitely winnable.
kaybe#
Do you have new numbers? I got a bunch of people addicted and I assume I'm not the only one.
louisremi#
Looks legit
cousin_it1 reply#
I'd be interested in seeing the lowest winning score, highest winning score, and lowest losing score (!)

Continue this thread — 1 reply

mschuster91#
I did, with 23000 points.
Chris_X#
Beat the game: http://oi62.tinypic.com/2wdopq9.jpg

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.

rayanm#
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 :)
blueblob#
This is very fun and addicting, now I just have to get some work done.
palakchokshi1 reply#
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. :)
phillmv6 replies#
Holy shit I just lost like 45 minutes to this.
wiredfool1 reply#
Evil evil game.
wiredfool1 reply#
And to quantify the evilness -- 1024 and exactly 12000 points.

Continue this thread — 1 reply

terabytest4 replies#
I've been playing this all day today. I basically created my own demise.
eru7 replies#
Just be glad you are already immune to Tetris.

Continue this thread — 7 replies

prasio1 reply#
I launched a very similar called Even last week on Android -- http://bit.ly/even-game -- have fun!

Continue this thread — 1 reply

nevvvermind#
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!
andrey-p1 reply#
Creating a game that you, the creator, can't stop playing is the sign of a pretty good game. It's like "eat your own dog food", but with crack.

Continue this thread — 1 reply

vjdhama1 reply#
I lost my whole damn day.
georgeg#
lost precious time for thesis writing! evil game!
Trufa#
Two hours straight and managed to get once to 1024.
gotts#
just spent a few hours on this. I'm in love-hate relationships with the author now
elwell#
"I am sorry '2048' users, 22 hours from now, I will take '2048' down. I cannot take this anymore."

Note: shameless parody plagarism, (original: https://news.ycombinator.com/item?id=7386459), but this thread has 20x points.

jackmaney1 reply#
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.
ilovecookies6 replies#
by pressing up-right-down-left, then repeat, I managed to get to 512 two times...

Continue this thread — 6 replies

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

Continue this thread — 1 more reply

Continue this thread — 29 more replies