Show HN: JavaScript Battle – A daily artificial intelligence battle
javascriptbattle.com
Show HN: JavaScript Battle – A daily artificial intelligence battle
1–10 of 43 posts
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#2I 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.
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#3I'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...
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#4That's interesting, I like that everyone's code has to be public on github so if you get relentlessly destroyed you will at least have the chance to learn from how your opponent works. 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…
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.
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#5CoreWars but with JS and GitHub! Cool idea. 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 loo…
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#6That's interesting, I like that everyone's code has to be public on github so if you get relentlessly destroyed you will at least have the chance to learn from how your opponent works. 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…
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#7That's interesting, I like that everyone's code has to be public on github so if you get relentlessly destroyed you will at least have the chance to learn from how your opponent works. 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…
That the code is public could easily be manipulated, by commiting minified code instead. It doesn't make it non-copyable but mostly unreadable. 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 havi…
Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#8Re: Show HN: JavaScript Battle – A daily artificial intelligence battle
#9This is great! Would ClojureScript (or other languages compiling down) do?
Hope that helps.