文件名称:PokerGame
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2015-03-04
- 文件大小:
- 25kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
共有1幅扑克牌,不包括大王和小王共52张牌。
可能有n个人参与扑克游戏,2<=n<=6。
程序运行时输入n,然后52张牌分别依次分发给n个人。不能整除时,每个人的牌数可以不同,如3个人,则第1个人18张,第2个和第3个人17张牌。
发牌完成后按花色(顺序为黑桃、红心、草花、方块)和牌面大小输出每个人得到的牌。
例如:
输入人数:3
输出如下:
第1个人:
黑桃:K 10 5A
红心:10 3 2
草花:K 10 8 6 3 A
方块:Q J 5 2
第2个人:
.......
第3个人:
......
要求:
(1)使用数组存放发牌情况。
(2)编写不同方法完成不同功能。-There are a poker, not including the king and a total of 52 cards Wang.
N individual may be involved in the game of poker, 2 <= n <= 6.
Enter n when the program is running, then turn 52 cards were distributed to n individuals. When not divisible by the number of cards each person may be different, such as three individuals, the first 18 individuals, 2 and 3 of the first 17 individual cards.
After licensing is completed by color (the order of spades, hearts, flowers, squares), and the output of each card size people get cards.
For example:
Enter the number of: 3
Output is as follows:
1st person:
Spades: K 10 5A
Red: 1032
Flowers: K 10 8 6 3 A
Box: Q J 5 2
The first two individuals:
.......
The first three people:
......
Claim:
(1) using an array to store the licensing situation.
(2) the preparation of different ways to perform different functions.
可能有n个人参与扑克游戏,2<=n<=6。
程序运行时输入n,然后52张牌分别依次分发给n个人。不能整除时,每个人的牌数可以不同,如3个人,则第1个人18张,第2个和第3个人17张牌。
发牌完成后按花色(顺序为黑桃、红心、草花、方块)和牌面大小输出每个人得到的牌。
例如:
输入人数:3
输出如下:
第1个人:
黑桃:K 10 5A
红心:10 3 2
草花:K 10 8 6 3 A
方块:Q J 5 2
第2个人:
.......
第3个人:
......
要求:
(1)使用数组存放发牌情况。
(2)编写不同方法完成不同功能。-There are a poker, not including the king and a total of 52 cards Wang.
N individual may be involved in the game of poker, 2 <= n <= 6.
Enter n when the program is running, then turn 52 cards were distributed to n individuals. When not divisible by the number of cards each person may be different, such as three individuals, the first 18 individuals, 2 and 3 of the first 17 individual cards.
After licensing is completed by color (the order of spades, hearts, flowers, squares), and the output of each card size people get cards.
For example:
Enter the number of: 3
Output is as follows:
1st person:
Spades: K 10 5A
Red: 1032
Flowers: K 10 8 6 3 A
Box: Q J 5 2
The first two individuals:
.......
The first three people:
......
Claim:
(1) using an array to store the licensing situation.
(2) the preparation of different ways to perform different functions.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PokerGame
.........\build
.........\build.xml
.........\.....\built-jar.properties
.........\.....\classes
.........\.....\.......\pokergame
.........\.....\.......\.........\PokerGame.class
.........\.....\.......\.........\PokerGame.java
.........\.....\empty
.........\.....\generated-sources
.........\.....\.................\ap-source-output
.........\dist
.........\....\PokerGame.jar
.........\....\README.TXT
.........\manifest.mf
.........\nbproject
.........\.........\build-impl.xml
.........\.........\genfiles.properties
.........\.........\private
.........\.........\.......\config.properties
.........\.........\.......\private.properties
.........\.........\.......\private.xml
.........\.........\project.properties
.........\.........\project.xml
.........\src
.........\...\pokergame
.........\...\.........\PokerGame.java