CoreWars 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…
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…
No matter how many turns are played, a match ends after 30 minutes? According to the rules, no team wins in this case?