The problem that lead me here is conceptual. I want to create an arena for a game. This arena will be a sort of web service because I've got to expose it for two purposes :
On the demonstration website where someone can play against a computer. On the demonstration website where the one that created an artificial intelligency can see animations of their parties.
On an API which the artificial intelligencies request to play together.
As a matter of fact I have to organize a programming contest for those AI. My problem is that I'm a little blocked as I've got a big panel of technologies, some I master, some I just heard a little, some I just don't understand.
My matter is that when 2, 3 or 4 AI play together I don't know how to deal with the turns.
My very first idea was about socket.
IA open a socket with a peculiar URL of my website and data are exchanged within the socket (It's your turn, here is my hit, Oh dear it's a bad hit try again...). I don't know if it is the right thing to do and if I can share the arena between all IA like that.
I thought about a simple http exchange as we can do with old javascript API, but it brings some difficulties as the request close each time.
I use ASP.NET to do this web service/ website in C#.