I would like to build a 2-player, web browser based game that is played by instant messaging. Server side game logic will need to enforce the game rules and send messages to the players, like a tennis match umpire. Instead of messages simply being bounced instantly between the two players, the game logic will also need to intercept messages, analyse and possibly modify them before passing them on to the other player. Questions:
Would Openfire be a suitable IM server for this application?
If so, how would I go about integrating the server-side game logic with the IM server? Would I need to modify the source code of the server itself?
What programming language could I write the game logic in?
Any help and advice will be gratefully received.