3 ms·
You could implement player-submitted AI as a web API - so they would write something in whatever language they choose, deploy it on Heroku, or now.sh, or stdlib
by insomniacity 9y ago
You could implement player-submitted AI as a web API - so they would write something in whatever language they choose, deploy it on Heroku, or now.sh, or stdlib or whatever, and then provide the URL.
When it's time to make a move, you just call their URL and process the response.
I don't think games involve a lot of data right? So you could probably make it stateless by transferring the whole game each time.
If you want a hand with this I could probably help! Just reply here, and I'll drop you an email.
- Baron_Von_Meats 9y agoHuh. I hadn't even thought of players hosting their own AI! That would actually be EXTREMELY easy to implement on my end, haha. You are correct, and that's basically what the game is doing already just to my own AI server, so all I would have to do is use a pugged-in url, perform a POST call and then parse the response. What a good idea! So I guess my to-do list now is: 1) Forgot password feature 2) B.Y.O.A.I. :)
- insomniacity 9y agoAwesome. I'm unaffiliated with stdlib, but I think you basically can't get easier than that for hosting something like this for free. And you can probably put together a template for people really easily. Anyway, sounds like you don't need any help - good luck!