Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to implement communication between game-server and game-agents over the internet?

Tags:

networking

I am planning to create a site that provides several games for self written game-agents.

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

My basic problem is: What would be a good way for the gameserver to communicate with the agents?

  • No communication: A special script language for the agents that can be submitted and interpreted on the server itself. This avoids the problem altogether, but it would be more fun if everyone could use his favorite language.
  • REST: This is a bit sparse in one direction.
  • SOAP?
  • REST with POST?

What connection-method would you like, if you would participate in such a game?

like image 788
Skaldrom Y. Sarg Avatar asked Oct 26 '22 07:10

Skaldrom Y. Sarg


1 Answers

I'd use a form of REST supported by sever state, SOAP is too inhuman. If you use REST people can even make bots with cUrl, so you'll have the widest audience

like image 179
Robert Gould Avatar answered Jan 02 '23 19:01

Robert Gould