Hacker News new | past | comments | ask | show | jobs | submit login

> I always dream about an RTS where one gets to be the DM ... where computer players fight against each other

There were quite a few of these around when I was learning to program: I and a couple of friends competed in one where you provided a robot that had to kill survive longer than the rest. Each action (movement, shooting at an enemy, using your shield, scanning to see anything) took energy and sources of that were unevenly distributed around the simple landscape (so a robot could camp on a large source for a while as an example tactic). My robots didn't tend to do very well unfortunately.

There must be modern equivalents around, though it sounds like you want to go the other way: providing the challenge to the AIs rather than an AI itself, so perhaps you could create your own.

I've considered it - it is one of the many projects on my "when I win the lottery or otherwise have a lot of spare time all of a sudden" project list. There are two main options: run the AIs on your platform in which case one of the constraints is processing resource (which you somehow need to hand out fairly) or just provide an API through which the AIs can submit moves (in which case you can't govern how much processing resource each AI can throw at the problem, but the game service would be very resource efficient to run. Of course with the latter option if there are limits to what the AI can see (fog of war or similar) then you have to play the whole game out before letting spectators see it otherwise an AI could abuse the spectator interface to gain advantage, if the AIs are hosted on your resources you can constrain such visibility much more readily.




I actually do like programming AIs as well. For some reason I am just fascinated to watch different AIs take on each other while I play the god - that being throwing random resources, challenges, units, disasters and etc. in the game and observing how they react. I used to do this with the very, very limited AI scripting and map trigger placement availability in AoEII and now I switched to C&C Generals but it is more unit modding oriented than general scripting so I'm looking for an alternative.

If you or someone else ships something like you just described, I'd probably waste a lot of weekends. So let me know if you win the lottery!


I wrote a web-based MMO with the goal that players would augment their experience by enhancing their client (potentially allowing a single player to control 10s of units RTS-style) as well as writing AI/bots to help them. The game can be played entirely by bots (this is how I tested it during development). Interestingly, the game balance and mechanics are such that a skilled solo hero can take on large numbers of bots and win (see this gameplay GIF: https://github.com/srpeck/kchess/blob/gh-pages/docs/kchess.g...).

The major enabling feature is that I do not differentiate between players and AI - both are networked clients (see here for the API docs: https://github.com/srpeck/kchess/blob/gh-pages/docs/kchessdo...). I wrote up some of my other design decisions here: https://news.ycombinator.com/item?id=10924316

And sorry, the live demo is currently down...but should be pretty quick/easy to run your own locally.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: