What is the best way to implement the interaction between the game server and game agents over the Internet?

I plan to create a site that offers several games for my own written game agents.

For example, there will be Tic-Tac-Toe (and, of course, some more complex games). Programmers can register their agents, and from time to time there will be a tournament. The game server will contact the registered agents, present a fee and ask for a move.

My main problem: what would be a good way for a game server to interact with agents?

  • No communication: a special script language for agents that can be sent and interpreted on the server itself. This avoids the problem as a whole, but it would be more interesting if everyone could use their favorite language.
  • REST: It's a bit sparse in one direction.
  • SOAP?
  • REST with POST?
  • ???

What connection method do you want if you participated in such a game?

+6
networking
source share
6 answers

I would use a REST form supported in sever state, SOAP is too inhuman. If you use REST, people can even create bots with cUrl, so you will have the widest audience.

+3
source share

I had great success using Twisted and developing my own application protocol built on this.

+1
source share

I would use a private protocol that gives you the opportunity to implement the server and clients in different languages. You can also add your favorite encryption mode.

0
source share

The scripting language will certainly be the easiest to write at your end. Personally, while you accurately indicate the protocol on the site and give an example of message formatting, any script should be able to use any format you choose.

0
source share

Normal old TCP with a set of user commands for your game?

0
source share

Go already has an existing Go Text Protocol . I would use similar protocols for other games.

0
source share

All Articles