关键词:长沙麻将,多线程,TCP协议,C/S模式,语音功能
The design and development of "Changsha Majiang"
ABSTRACT
In highly developed Internet today, the network game was much universal. Now the network games on the widespread have many shortcomings, such as geographical characteristics is not strong. This topic will develop a majiang game in Changsha localization, which has its own unique way of playing cards, and we also append localization of voice function to this game.
The design of the system takes into account the high portability and high availability features. We used C/S system architecture model, multithreading technology, and we used TCP protocol to transfer of information between server and clients. Rules of the game were constituted in the server with a separate category. In the future, the game only needs some small modifications to support other geographical rules. Taking into account of the player's feeling when they playing the game, we will all have complicated calculations on the server side, the client only simply display information. So the speed of this game will be very fast.
The innovation in design lies in its use of the object-oriented design. The function of voice and calculate score is achieved in a separate category. Thus, they only need to make some modifications in these separate modules; it can meet the needs of different regions, which improve the system "scalability."
The system achieved a very good localization features. Games in the course of the test run good, and voice system can work well, too. All of these confirmed that the system design and development has been the desired results.
Keywords: Changsha majiang, multithreading, TCP protocol, C/S mode, voice function