I am running into some problems right now.
I am developing a card game (Top Trumps) which is played by two players. I wonder how to best setup the architecture.
Right now almost all of the game logic is calculated on client side.
The game state is saved in a database table. The database is updated every second. But since two players are playing there are some problems. It's really hard to not run into problems with this approach.
Maybe it would be better to handle all the Game Logic on the Server Side with a WCF Service and just use the client side as a presenter. The WCF would handle all game logic, save/load the state in database and the two clients can ask for the game state which is sent via XML.
What do you think about that approach? How about performance? Or does somebody maybe know a better approach?
Thank you in advance.