文件名称:PokerGame
介绍说明--下载内容来自于网络,使用问题请自行百度
实验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 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.