文件名称:PokerGame
- 所属分类:
- JSP源码/Java
- 资源属性:
- 上传时间:
- 2017-11-22
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- iKot****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实验2 发牌游戏
实验内容:
编写程序,项目名和类名均为PokerGame。
描述:
共有1幅扑克牌,不包括大王和小王共52张牌。
可能有n个人参与扑克游戏,2<=n<=6。
程序运行时输入n,然后52张牌分别依次分发给n个人。不能整除时,每个人的牌数可以不同,如3个人,则第1个人18张,第2个和第3个人17张牌。
发牌完成后按花色(顺序为黑桃、红心、草花、方块)和牌面大小输出每个人得到的牌。
要求:
(1)使用数组存放发牌情况。
(2)编写不同方法完成不同功能。(Descr iption:A total of 1 cards, a total of 52 cards.
There may be n individuals involved in poker games, 2<=n<=6.
When the program is running, enter n, and then the 52 cards are distributed to individual n in turn. When you can't divide each one, the number of cards per person can be different. For example, 3 people, first people, 18, second and third people, 17 cards.After the completion of the licensing by color and the output of each card size people get cards.)
实验内容:
编写程序,项目名和类名均为PokerGame。
描述:
共有1幅扑克牌,不包括大王和小王共52张牌。
可能有n个人参与扑克游戏,2<=n<=6。
程序运行时输入n,然后52张牌分别依次分发给n个人。不能整除时,每个人的牌数可以不同,如3个人,则第1个人18张,第2个和第3个人17张牌。
发牌完成后按花色(顺序为黑桃、红心、草花、方块)和牌面大小输出每个人得到的牌。
要求:
(1)使用数组存放发牌情况。
(2)编写不同方法完成不同功能。(Descr iption:A total of 1 cards, a total of 52 cards.
There may be n individuals involved in poker games, 2<=n<=6.
When the program is running, enter n, and then the 52 cards are distributed to individual n in turn. When you can't divide each one, the number of cards per person can be different. For example, 3 people, first people, 18, second and third people, 17 cards.After the completion of the licensing by color and the output of each card size people get cards.)
相关搜索: PokerGame
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
PokerGame | ||
PokerGame\.classpath | 295 | 2017-11-05 |
PokerGame\.project | 385 | 2017-11-05 |
PokerGame\.settings | ||
PokerGame\.settings\org.eclipse.jdt.core.prefs | 598 | 2017-11-05 |
PokerGame\PokerGame.class | 4254 | 2017-11-22 |
PokerGame\PokerGame.java | 3891 | 2017-11-08 |