简体   繁体   中英

Card game server side technology, which one to choose?

I am making card game in C# WPF. For now I have singleplayer mode, and now I need to make multiplayer mode.

This game is for 4 player only. One of them will create game and start server. After that 4 player will connect to the game through game client application. Every player have 60 seconds to play, after that server get notification and then it is other player turn.

Is it okay to be done with web service or would it be better if it is done through TcpListener and TcpClient technology, or perhaps some third option?

您可能应该使用WCF

Assuming the players are on the internet I'd go the web service route. At least you'd want to use http and port 80 to be able to get through firewalls easier. You wouldn't want your users to have to specifically open up ports just to play the game.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM