Show HN: JavaScript Battle – A daily artificial intelligence battle
javascriptbattle.com
javascriptbattle.com
I'd be very interested in hearing about the server-side setup, especially around isolating the code so some rando doesn't "require('fs')" and do damage to the server. How are you isolating the brains from the sensitive game data and from each other? How long does a single game take to run given max users? How are you protecting against "while(true);"?
Here's a repo that looks related: https://github.com/JavascriptBattle/javascript-battle-webwor...
No matter how many turns are played, a match ends after 30 minutes? According to the rules, no team wins in this case?
I haven't yet tried the game itself, but the testing page mentioned on the frontpage seems rather important, and I think I'll hold off on trying the game until that is implemented.
Also I think it would be good to mention at what time (in which timezone) each day the code is pulled and the battles are run.
There is a small testing utility (called " test_your_hero_code.js") in the repository where you can make sure your hero is working as it should. But I'm also looking forward to a proper testing page where I can see the battle.
Interesting idea however, looking forward to having some free time to trying it out fully.
Either way cool game/site will give spin up a Hero soon.
Edit: I've got a bot ranked #237 still, a year on from its creation.
I registered yesterday but today I can't login. The 'login with github' button doesn't do anything (just reloads the page).
Also the leaderboard seems to breakdown if you interact with it for a bit - just stops updating.
Thanks for bearing with us!
so today (500 diamonds vs 7) server randomly assigned one guy that dominates vs 10 pretty bad players?
Eventually we'd like to add a slightly smarter matchmaking system (assign users to games based on some sort of performance ranking perhaps?), but for now it's very possible to end up on a less-than-stellar team.
What would be nice to see when the next battle will start (probably localized) :-)
really great by the way!
Hope that helps.