文件名称:PokerGame
-
所属分类:
- 标签属性:
- 上传时间:2014-04-21
-
文件大小:19.43kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实验2 发牌游戏
实验类型:验证性
实验目的:掌握Java数组、方法、类的基本定义。
实验内容:
编写程序,项目名和类名均为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个人:
......
要求:
(1)使用数组存放发牌情况。
(2)编写不同方法完成不同功能。
提交要求:打包为可以执行的JAR文档,其中要包含源程序文件。-Experiment 2 licensing game
Types of experiments : confirmatory
Purpose : to master Java arrays, methods, basic class definition .
Experiment:
Programming, project name and class name are PokerGame.
Descr iption :
There are a poker , not including the king and Wang were 52 cards.
N individuals may participate in poker games , 2 <= n <= 6.
Enter n runs, then 52 cards are in turn distributed to n individuals. When not divisible , each person can vary the number of cards , such as three individuals , the first 1 person 18 , Section 2 and 3 of the 17 individual cards .
After the completion of the licensing by color ( the order of spades, hearts, flowers , boxes ) and the output of each card size people get cards.
For example:
Enter the number of : 3
The output is as follows :
1st person :
Spades : K 10 5A
Red : 1032
Flower : K 10 8 6 3 A
Box : Q J 5 2
The first two individuals :
.......
The first three individuals :
......
Requirements:
( 1 ) using an array to s
实验类型:验证性
实验目的:掌握Java数组、方法、类的基本定义。
实验内容:
编写程序,项目名和类名均为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个人:
......
要求:
(1)使用数组存放发牌情况。
(2)编写不同方法完成不同功能。
提交要求:打包为可以执行的JAR文档,其中要包含源程序文件。-Experiment 2 licensing game
Types of experiments : confirmatory
Purpose : to master Java arrays, methods, basic class definition .
Experiment:
Programming, project name and class name are PokerGame.
Descr iption :
There are a poker , not including the king and Wang were 52 cards.
N individuals may participate in poker games , 2 <= n <= 6.
Enter n runs, then 52 cards are in turn distributed to n individuals. When not divisible , each person can vary the number of cards , such as three individuals , the first 1 person 18 , Section 2 and 3 of the 17 individual cards .
After the completion of the licensing by color ( the order of spades, hearts, flowers , boxes ) and the output of each card size people get cards.
For example:
Enter the number of : 3
The output is as follows :
1st person :
Spades : K 10 5A
Red : 1032
Flower : K 10 8 6 3 A
Box : Q J 5 2
The first two individuals :
.......
The first three individuals :
......
Requirements:
( 1 ) using an array to s
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PokerGame/
PokerGame/build/
PokerGame/build/built-jar.properties
PokerGame/build/classes/
PokerGame/build/classes/PokerGame.class
PokerGame/build/empty/
PokerGame/build/generated-sources/
PokerGame/build/generated-sources/ap-source-output/
PokerGame/build.xml
PokerGame/dist/
PokerGame/dist/PokerGame.jar
PokerGame/nbproject/
PokerGame/nbproject/build-impl.xml
PokerGame/nbproject/genfiles.properties
PokerGame/nbproject/private/
PokerGame/nbproject/private/config.properties
PokerGame/nbproject/private/private.properties
PokerGame/nbproject/private/private.xml
PokerGame/nbproject/project.properties
PokerGame/nbproject/project.xml
PokerGame/src/
PokerGame/src/PokerGame.java
PokerGame/build/
PokerGame/build/built-jar.properties
PokerGame/build/classes/
PokerGame/build/classes/PokerGame.class
PokerGame/build/empty/
PokerGame/build/generated-sources/
PokerGame/build/generated-sources/ap-source-output/
PokerGame/build.xml
PokerGame/dist/
PokerGame/dist/PokerGame.jar
PokerGame/nbproject/
PokerGame/nbproject/build-impl.xml
PokerGame/nbproject/genfiles.properties
PokerGame/nbproject/private/
PokerGame/nbproject/private/config.properties
PokerGame/nbproject/private/private.properties
PokerGame/nbproject/private/private.xml
PokerGame/nbproject/project.properties
PokerGame/nbproject/project.xml
PokerGame/src/
PokerGame/src/PokerGame.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.