This article will give the source code of the Bucket landlord algorithm, introduce some basic situation of the Bucket landlord project.
Download Address : http://download.csdn.net/detail/fansunion/6387589
Special Note : The main implementation of the Bucket landlord project, the bucket landlord in the shuffle, licensing, judging the card type, sorting and other series of algorithms, but this is not a complete project.
The interface operation part, the function is very limited, only for the reference, has the interest schoolmate self-improvement.
Project Structure
Project screenshot
a problem that novice is apt to encounter
Introducing the following 2 classes will report an error
Import Sun.audio.AudioPlayer;
Import Sun.audio.AudioStream;
Description Resource Path Location Type
Access Restriction:the Constructor Audiostream (InputStream) is not accessible due to restriction on required library c:\p Rogram Files\java\jre7\lib\rt.jar Ddzutil.java/doudizhu/src/cn/fansunion/ddz Line 138 Java Problem
Solution Solutions
windows-preferences-java-compiler-errors/warnings-deprecated and restricted Api-forbidden reference (Access rule), Change the error to warning or ignore.
These deprecated or restricted APIs, I have not yet found the corresponding replaceable API, so use it first.
Interactive communication
A. Feel good, "top". The "Top" button below the article.
B. Leave a comment.
C. Have any good suggestions, or there are errors in the program, you can tell me oh.
Related reading
Design and implementation of bucket landlord algorithm
Object-oriented implementation of the core algorithm of the landlord program, including shuffling, licensing, judging the card type, the size of the comparison card, game rules and so on.
In the original text see: http://FansUnion.cn/articles/2749