Live data from Hacker News

2048 – multiplayer

emils.github.io

41–50 of 121 posts

Re: 2048 – multiplayer

#43
function arrows(key) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = key; document.dispatchEvent(eventObj); } for (y=0; yIt works nicely in multiplayer as well. My opponents are probably often surprised. (js credits: varyform)

Re: 2048 – multiplayer

#44

What's next? Multiplayer 2048 AI vs AI…

Why not? That would be awsome. There's already a python repository for interfacing with bots, and it works using unix socket. It's here: https://github.com/matslindh/4096

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.

Re: 2048 – multiplayer

#49
post #24
post #6

Seems rather buggy to me I'm afraid. I've observed: * 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

Everyone I played seems to be a bot - or they have super-human finger speed!

You can get pretty fast fairly easily. Just got the first 256 tile in 35 sec, first 512 tile in 1:12.
Post reply on HN