Discussion on the object-oriented design of tractor games

Source: Internet
Author: User

There should be several use cases in a process:
User Logon
View Current card friends
Join a board
Exit
In the process of playing cards, there are mainly the following:
Determine the banker
Licensing
Reserve bottom
Sequential licensing (this section of logic requires good encapsulation)
Scoring to determine the outcome
Others:
User-related chat and communication
In this process, the following classes mentioned by bigeagle are basically summarized:
A hall (in fact, the hall should contain many versions of tables) users can view the status of each table and select the table they want to add.
Table (or desk) tables can be understood as a Bureau Administrator (or, tables only display), and a class is used to manage the board. This does not seem to have such a manager in our general card playing process, because some work is done by ourselves (such as card issuing and scoring)
Poker itself is a type. There must be an overall concept of cards. It determines the total number of cards and the licensing process.
Cards and users are basically these concepts.
The hall is a service concept and requires a daemon process. In addition, it can be considered as a "list" mode.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.