Lai Yonghao (http://laiyonghao.com)
Transfer a set of flash-based Web card and board game platforms, which I developed in early 2009. At that time, I started an outsourcing project, so I started to do it. Later, the project aborted. Recently, I have seen a lot of outsourcing information about web board games, so it is better to mine the residual value in line with the code. I will transfer it here.
The reason why I transfer it here, rather than on an external package network, is that this project gives me some requirements for the buyer: the buyer has certain development capabilities. If there is no technical staff, I suggest not buy it.
This is because the server of this card and board game system is developed based on Python and runs on GNU/Linux. Well, it is running on Ubuntu server 10.04. This project uses MySQL 5.1. in the database, I implemented a sub-database proxy process, so it is no problem to support 0.1 million people online. What if it exceeds 0.1 million? Theoretically, there is no problem. If there is a problem in fact, it doesn't matter much. At that time, you must have money to attract a lot of cool people and they will help you with it. You know, it is not easy to find 0.1 million people to play chess and cards. At least it is much harder to find a board and board platform that can support 1 million online players. Believe me.
Flash and Python communicate through TCP socket. The protocol used is AMF, and the server uses pyamf 0.6. This is fast, you know. The server is composed of several processes to form a "pseudo-distributed" system. Well, the use of pseudo-characters is because many distributed systems have missing features. This is mainly due to cost-benefit ratio considerations, the money that card games can earn is not worth the cost of developing a distributed system. I believe you understand it. Although it is a "pseudo-distributed" system, its scalability, flexibility, and reliability are guaranteed to a certain extent. It cannot provide 99.999% uninterrupted service, and it does not have reliability. If you update the system, you need to restart it. Fortunately, if you do not need to update the system, then you almost don't have to pay attention to it. The server has a simple IP-based security policy for the connected client (the client may be another process on the server). Simply put, that is, the connection from the IP address that is not in the trusted IP address list will be broken. This is basically enough. Don't forget the cost-benefit ratio.
This system uses asynchronous callback to develop business logic. Therefore, the Business Code is inevitably divided into several callback functions. This requires the buyer to understand the benefits. Although multithreading is used, it is done in a very simple producer/consumer mode, with locks in the middle of the queue for decoupling. You do not need to know the fact that multiple threads exist when writing business code. All business code can be written as a single thread. It is unnecessary to lock the magic horse.
Like all chess and card platforms, business logic (such as landlords and chess games) exists in the form of plug-ins, however, I am a little different. These business logic is implemented by using the process method as the plug-in, rather than directly using the Import/loadlibrary method to directly kill the process space, this is also the reason for the high reliability of the system. For example, if the landlord service is dead, you can still play chess.
Finally, in addition to completing the hall, this chess and card platform now has three games, namely landlords, Chinese chess, and wuziqi (no banned players ), the completion of landlords is already quite high, and the latter two are somewhat lower.
Even though it is to mine the remaining value, this system certainly cannot be as expensive as thousands of yuan as it is sold in the forum. If your budget is like this, you do not need to contact us. Well, I should say my contact information, please mail to: mail@laiyonghao.com
Http://qp-demo.laiyonghao.com/client/
A chess and card demo was launched on the Internet.
The test account can be registered at will.
Which of the following are: