2048 – multiplayer
emils.github.io
emils.github.io
:)
We should expect Gabriele Cirulli to be in Rollingstone next. :p
* Timer runs out, game proclaims both players winner
* One opponent makes no moves for the entire game, proclaimed winner when timer runs out
* One player proclaimed loser at arbitrary point with timer still running and legal moves left in play
I might revert to mashing if I free up some space.
edit Though the game also appears to be broken. This is my single player strategy too :)
Can be easily fixed by setting float:right on #player-online
Have a nice day.
You can find the repo at https://github.com/EmilS/2048-multiplayer, PR's are welcome! :)
How do you pick which tile you want to move?
And btw, when I tried, two tiles with same numbers were NOT merging most of the time. Other times it seemed that the entire row was moving. Then again, I could not figure out how to select a tile to move. Mouse seemed to work but only sometimes. Perhaps accidentally... Too buggy or just big time lag.., or just big time lag..
So why not let the game clock finish before the game tells who is the winner?
- With a clear point advantage still both players get declared winner
- After one move I was declared loser, while actually I made the only move and it was a valid one as well, with loads of options left (as it was the first move)
- It thinks the game is finished on random occasions.
"Failed to load resource: net::ERR_CONNECTION_TIMED_OUT http://2048.stolarsky.com:3000/game/new"
in the console.
I made a single move and it said the game was over???
Chrome - finds opponent in seconds. Loses connection after 30 seconds - 1 minute. Buggy as all hell.
Your multiplayer code needs work.
It works nicely in multiplayer as well. My opponents are probably often surprised. (js credits: varyform)
I'm not sure 1vs1 battle matches is the best idea (it's not chess), but it shouldn't be too much hassle to make it into a platform that tracks the highest scores, best averages etc. It could be divided into different time controls (1 sec per move, 3 minutes per game etc.). The point would be to see who could make the best AI.
It could have a simple flask app, or similar, that just shows the high scores and makes it possible to reserve bot names (so other people can't play as you.)
I'm just putting ideas into someones (noones) head. But if people who's currently/who wants to play with 2048 AI responds to this, I might make an effort to get it starting.