文件名称:pokergame
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Text]
- 上传时间:
- 2013-11-04
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 谢*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写程序,项目名和类名均为PokerGame。
描述:
共有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个人:
-Programming, project name and the class name are PokerGame. Descr iption: There are a poker, not including the king and Wang of 52 cards. N individuals may participate in poker games, 2 < = n < = 6. Program is running you enter n, then 52 cards were distributed sequentially n individuals. Not divisible, each person' s card number can be different, such as the three individuals, the first a person 18, Section 2 and 3 of the 17 individual cards. After licensing by color (the order of spades, hearts, flowers, boxes) and card size output of each person gets the card. For example: Input: 3 Output as follows: 1 person: spade: K 10 5A Heart: 1032 flower: K 10 8 6 3 A box: QJ 5 2 2 Individual: ....... 3 Individual:
描述:
共有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个人:
-Programming, project name and the class name are PokerGame. Descr iption: There are a poker, not including the king and Wang of 52 cards. N individuals may participate in poker games, 2 < = n < = 6. Program is running you enter n, then 52 cards were distributed sequentially n individuals. Not divisible, each person' s card number can be different, such as the three individuals, the first a person 18, Section 2 and 3 of the 17 individual cards. After licensing by color (the order of spades, hearts, flowers, boxes) and card size output of each person gets the card. For example: Input: 3 Output as follows: 1 person: spade: K 10 5A Heart: 1032 flower: K 10 8 6 3 A box: QJ 5 2 2 Individual: ....... 3 Individual:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PokerGame.jar
README.TXT