Show HN: 1024, a 2048 Puzzle Game(1024-game.netlify.app) |
Show HN: 1024, a 2048 Puzzle Game(1024-game.netlify.app) |
Cool game.
```
const rotate = (direction) => { const directions = {counterclockwise: 0, clockwise: 1}; const buttons = Array.from(document.querySelector('.mt-16.flex.items-center.justify-between.w-72.h-12.px-2').querySelectorAll('div')).filter(el => el.className === ''); buttons[directions[direction]].click(); }
document.addEventListener('keydown', (ev) => { switch (ev.key) { case 'ArrowLeft': rotate('counterclockwise'); break; case 'ArrowRight': rotate('clockwise'); break; } });
```
Some proposals to improve usability:
The game should notice a stalemate and tell you that you lost (no matter how you rotate: no more progress is possible).
The game should accept a hit of 'Return' to start the new game (it currently seems to insist of mouse interaction).
The game should have a 'fast' mode with less animation so that I can play faster. A single move takes too long! I am impatient! :-)
Very fun take on the old 2048 concept, but I'd better stop playing now otherwise I'll be on it all morning!
My only suggestion is to add control by cursor keys in addition to mouse.
I have no idea what it would look like, but it'd open the pool for strat on solving the puzzles I think. May need to play around a bit with the shapes and materials to make it more interesting though.
I bet this was tried, but what's play like with the same game mechanics of this version, but with the original game play, where each move gives you a new block?
I’m not gonna ruin the original game’s mechanics for anyone who hasn’t already had them ruined, but I will say I recently tried exactly this strategy in the original and it gets you surprisingly far. But it’s definitely not a winning strategy.
I’ve been obsessively playing another 2048 variant which was a recent Show HN[1], and has confounded me since. Yours has a much gentler learning curve and obviously isn’t designed to be unbeatable. Rotating the whole board will probably continue confounding me in entirely different ways.
2048 is called that way because you need a 2048 block to win
Is each board guaranteed to be solvable?
For playing on mobile - it's be nice to be able to rotate by swiping vertically down the empty space on the left or on the right of the board.
Edit: now intermittent errors