|
Chess casual games now have a very broad mass base, such as folk traditional Chinese chess, poker, chess are one of the most common entertainment activities. Typical game lobby Internet company providing products, is commonly used in chess casual games integrated into a platform game time you log in, you can play a variety of chess casual games, providing a one-stop service. However, in our limited commercial competition, and other reasons, the game lobby providers and not announce its realization principle. Abroad, because of cultural differences, the chess game is not common, so chess technology not conducted in-depth research, these reasons have led to the very lack of the technical data of the Network chess game. Server technology occupies an important position in the chess network game, network chess game technology to better promote the development, design a general-purpose high-performance network chess game server platform. This article is in the the Thunder game lobby server project group internship work, according to the actual project experience, Network chess game server technology research and innovation. The main work of this paper are as follows: First analysis of the background and significance of the research projects, analysis and summary of the characteristics of the user base of board games, chess game, another analysis of the status and trends of the development of domestic and international network chess game. 2 describes the relevant background knowledge and key technologies for the chess server. Analysis of typical network structure, summarize the advantages and disadvantages of each, another preliminary Epoll technology introduction. Analysis of the characteristics of network chess game, determine the core functionality of the server to achieve, and core server architecture. Then determined on the basis of a chess game flow, and to assume the functions of each of the core server, and gives important implementation class. Determine core server architecture based on the analysis of a chess game with common application of the idea of ??object-oriented framework and specific logical separation of the service end of the game logic. Common framework to achieve the work and the underlying communication, maintenance and other basic functions. The framework identifies a third-party interface, developed by third parties, according to the interface specific game logic. Determined by the framework when the service end of the game logic runs to load specific game logic, so that the end of the game logic versatility, the service end of the game logic evolved into a common platform. Multiple network game server performance issues have been of concern, the goal of the game to ensure that the large amount of users online at the same time, this article from the structure and procedures to achieve solutions. Such as the choice of operating system and IO model, the specific application of the distributed architecture, data processing mode and application caching mechanism and so on. Study how to achieve the stability of the chess game, put forward solutions to the problems of the common affect stability.
|