How to realize mahjong and card program by java
This article mainly shows you "java how to achieve mahjong and card program", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "java how to achieve mahjong and card program" this article.
The following is the mahjong and card program written by Java:
Public class MaJiang2 {private boolean jiang=false;// whether to find the public MaJiang2 () {} / / pattern, to judge whether the design and color has been reduced (if not, naturally not) private int huase (int [] hua) {if (hua.length==7) {/ / judgment word, since it is quite special, it does not follow for.