HNHacker News
TopNewBestAskShowJobs

forrestbthomas

84 karma · joined April 15, 2014

Full stack Javascript engineer
submissionscomments
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Interesting...We'll take a look at that. Sounds like something with our OAuth redirect. Thanks so much for the update!
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks for the note and the screenshot. Should be fixed now.
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks for the feedback. Feel free to use the 'contact us' link at the bottom of the page with any specific suggestions that you might have for gameplay. In the meantime, we hope you enjoy it! *Note: The way to beat the Coward is by collecting diamonds. The Coward won't collect any, so won't be contributing to the team's score.
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks for the question. The comments below have a couple similar games, but we built JavaScript Battle because we felt it was unique. Let us know what you think!
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks! Inspired by it. There is a link at the bottom of the page to Vindinium, as well.
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks for the clarification. I wasn't very clear in my answer before. The game ends after a maximum of 1250 turns or when all of one team's heroes are killed. If the maximum turn is reached, the team with the most diamonds wins. If every player on the team took the full 2 seconds on every turn, the game would last around 30-40 minutes.
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks so much for the feedback. As you said, we do have a temporary testing utility for users while we finish up our testing site. Hope to see you soon!
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
That's really good feedback, thank you. We are currently running the game at close to midnight, Pacific Time. As far as the testing site, that should be coming soon, but feel free to try out our temporary testing suite in the meantime. The hero-starter repo has all the instructions for that. Thanks so much for your comments and feedback!
forrestbthomas··on Show HN: JavaScript Battle – A daily artificial intelligence battle
Thanks so much for the interest and the questions. You are correct in that the web-workers repo is related. Its the repo we use on the back end. To answer your questions in turn: "How are you isolating the brains from the sensitive game data and from each other?" - We are sandboxing each user's code in an isolated environment where a server listens for a POST request on a specified endpoint. That request carries the game data with it and after the user's code runs, the server sends back the result of that function, which is supposed to be a string (North, East, South, West, or Stay). The game data itself is update on our server, after receiving the response. "How long does a single game take to run given max users?" The games will take a maximum of 24 users, which will take a maximum of 30 minutes to run, if every user does something like "while(true)." Each server has a max-timeout setting of around 2 seconds. I hope that answers your questions and please feel free to offer any feedback. Thanks again!