哪里有集合各种澳门赌场牌类游戏戏的地方?

棋牌游戏大全排行榜
休闲时间,选择玩棋牌游戏打发时间的朋友特别多,为此小编特意整理了火爆的棋牌游戏大全给大家,内置丰富的棋牌游戏,涵盖各地特色玩法、经典玩法,总有一款可以打动你的心,快来下载与朋友一起玩吧!
类别:即将发布
简介:火拼三公是一款集合了多种玩法于一身的棋牌游戏,丰富有趣的玩法可以满足不同玩家的需求,游戏支持多种登录方式,每个玩家都能随时随地的畅玩,游戏之...
类别:即将发布
简介:百乐填大坑是一款超多的玩家在线的棋牌游戏,游戏以房卡的方式进行游戏,每个玩家都能创建属于自己的私人房间,每个玩家都能体验到安全私密的环境带来...
大小:121.22MB
类别:即将发布
简介:梦幻娱乐是一款能够给玩家带来畅爽的感觉的棋牌游戏,玩家之间的正面对决比拼的就是彼此的实力,游戏支持多种登录方式,随时随地都能畅玩,每一次对局...
类别:即将发布
简介:同来棋牌是一款正宗地道的地方性的棋牌游戏,熟悉的规则让每个玩家都能快速上手,游戏之中还有超多的玩法给玩家上演了更加精彩的对局,更有海量的奖励...
类别:即将发布
简介:松江老胡头是一款拥有精致画面的棋牌游戏,游戏主打好友约局对战的方式,玩家能够在这里体验到无限的欢乐,游戏之中还有不同的房间任你选择,每个玩家...
类别:即将发布
简介:一号棋牌是一款画面非常清新的棋牌游戏,地道的江南水乡的风格给玩家带来了全新的体验,游戏支持多种登录方式,每个玩家都能快速的上手,游戏之中还有...
类别:即将发布
简介:铜橙游戏是一款以跑得快为核心玩法的棋牌游戏,游戏的画面非常精致,完美的展示出了每一处的细节,丰富的房间等待玩家的选择,每个玩家都能选择自己喜...
大小:51.70MB
类别:棋牌天地
简介:闲逸麻将是一款在全国范围内都非常流行的棋牌游戏,地道正宗的游戏玩法让每个玩家都能快速的上手,游戏之中的场次分类非常明确,每个玩家都能够选择自...
类别:即将发布
简介:约呗游戏是一款画面非常精致的棋牌游戏,游戏之中的玩家非常多,随时随地都能进行组局对战,游戏之中还有丰富的比赛等待玩家的参与,获得好的成绩的玩...
类别:即将发布
简介:兜趣龙岩麻将是一款极具地方色彩的棋牌游戏,游戏采用了顶级的防作弊技术,能够给玩家安全私密的游戏环境,游戏还支持多种登录方式,可以满足不同玩家...
大小:15.60MB
类别:棋牌天地
简介:悟空斗牛是一款经典有趣的棋牌游戏,游戏之中的玩家非常多,随时随地都能够进行组局对战,还有丰富的模式等待玩家的体验,能够带给玩家不同的感觉,喜...
类别:即将发布
简介:星辰斗牛牛是一款能够让玩家轻松畅玩的棋牌游戏,游戏之中的玩家非常多,无需任何的等待,随时随地都能来一场精彩绝伦的对决,更有顶级的防作弊技术给...
大小:39.49MB
类别:即将发布
简介:徐州配王麻将是一款专门为徐州人量身定制的棋牌游戏,正宗地道的规则深受本地人的喜爱,游戏采用了房卡的模式,玩家可以在游戏之中创建属于自己的私密...
大小:35.90MB
类别:棋牌天地
简介:哈哈海南麻将是一款在海南地区非常流行的棋牌游戏,游戏之中的玩家超级多,并且都是真人玩家,每个玩家都能随时随地体验到对决带来的乐趣,游戏之中还...
大小:32.40MB
类别:棋牌天地
简介:韵味湖南麻将是一款在湖南地区非常流行的棋牌游戏,地道正宗的游戏规则让每个玩家都能快速的上手,游戏之中的玩家非常的多,随时随地都能进行进行组局...
大小:68.48MB
类别:棋牌天地
简介:全民战牛是一款休闲类的棋牌游戏,卡通风格的画面带领喜欢棋牌游戏的你走进一个绝对公平的娱乐平台;玩家在这里可以参加多样的玩法,真人实时对战,为...
大小:55.60MB
类别:即将发布
简介:微信五子棋对决是一款以五子棋为主要玩法的游戏,游戏采用了匹配的方式,玩家将会与不同的玩家进行对决,并且还有刺激好玩的排位赛可以展示玩家的技术...
大小:79.32MB
类别:即将发布
简介:地瓜游戏是一款休闲类的游戏集合,这里有多款适合你打发闲暇无聊时光的游戏,比如棋牌、麻将等,同时游戏还为广大玩家营造了一个绝对公平自由的游戏环...
大小:130.30MB
类别:即将发布
简介:恩正麻将是一款具有地方特色的棋牌游戏,游戏以南京麻将为主打,一切都给玩家带来熟悉的体验,玩家可以在游戏之中创建专属于自己的私密房间,享受游戏...
大小:85.60MB
类别:即将发布
简介:洛格棋牌是一款玩法非常新颖的棋牌游戏,丰富有趣的玩法任由玩家选择,游戏之中还有不同的模式等待玩家的体验,每个玩家都能尽情的体验到游戏带来的乐...
大小:104.45MB
类别:即将发布
简介:游狐斗地主是一款清新游戏画风的棋牌游戏,游戏采用了顶级的打造技术展现了卓越的品质,原汁原味的成都棋牌的玩法深受成都人的喜爱,游戏之中还有海量...
大小:45.60MB
类别:棋牌天地
简介:一友牛牛是一款极具古典气息的棋牌游戏,游戏包含了众多的玩法任你选择,每种玩法都有各自的特点以及乐趣,游戏采用了统一的金币,方便玩家在各种玩法...
大小:86.10MB
类别:即将发布
简介:摩卡棋牌是一款超多玩家在线的棋牌游戏,卡通的造型设计,人物的形象非常的可爱,更有经典的斗地主玩法等你来战,众多的模式任你选择,更有匹配对战的...
大小:152.20MB
类别:即将发布
简介:其乐游戏是一款集合了多种玩法于一身的棋牌游戏,丰富的游戏玩法满足不同的喜好的玩家,每种玩法都有详细的分类,方便玩家寻找,更有智能化的提示让打...JAVA collection集合之扑克牌游戏实例
转载 &更新时间:日 11:33:17 & 作者:小猩
本篇文章主要介绍了JAVA collection集合之扑克牌游戏实例,使用了collection集合开发小游戏,有需要的可以了解一下。
Collection 层次结构中的根接口。Collection表示一组对象,这些对象也称为collection的元素。一些 collection 允许有重复的元素,而另一些则不允许。一些 collection 是有序的,而另一些则是无序的。JDK 不提供此接口的任何直接 实现:它提供更具体的子接口(如 Set 和 List)实现。此接口通常用来传递 collection,并在需要最大普遍性的地方操作这些 collection。
主要内容:这里使用collection集合,模拟香港电影中大佬们玩的扑克牌游戏。
1、游戏规则:两个玩家每人手中发两张牌,进行比较。比较每个玩家手中牌最大的点数,大小由A-2,点数大者获胜。如果点数相同,则比较花色,大小由黑(4)、红(3)、梅(2)、方(1),花色大者获胜。
2、实现步骤:
创建一副扑克牌A-2,四种花色黑(4)、红(3)、梅(2)、方(1)共52张牌;
创建两个玩家包含玩家ID和姓名、所持牌Card信息;
洗牌并向两位玩家各发两张牌;
比较玩家手中牌大小,得出获胜者;
3、程序实现
牌Card类:包含牌的数字和花色
package collectiontest.
public class Card {
private I //牌的大小
private I//牌的花色
public Card(Integer id, Integer type) {
this.type =
public Integer getId() {
public void setId(Integer id) {
public Integer getType() {
public void setType(Integer type) {
this.type =
public String toString() {
return "Card [id=" + id + ", type=" + type + "]";
扑克牌Poker类:包含扑克牌Card A-2
package collectiontest.
public class Poker {
private Card id2 ;
private Card id3 ;
private Card id4 ;
private Card id5 ;
private Card id6 ;
private Card id7 ;
private Card id8 ;
private Card id9 ;
private Card id10 ;
private Card J ;
private Card Q ;
private Card K ;
private Card A ;
public Poker() {
//四个类型:黑--4、红--3、梅--2、方--1
public Poker(Integer type) {
this.id2 = new Card(2, type);
this.id3 = new Card(3, type);
this.id4 = new Card(4, type);
this.id5 = new Card(5, type);
this.id6 = new Card(6, type);
this.id7 = new Card(7, type);
this.id8 = new Card(8, type);
this.id9 = new Card(9, type);
this.id10 = new Card(10, type);
this.J = new Card(11, type);
this.Q = new Card(12, type);
this.K = new Card(13, type);
this.A = new Card(14, type);
public Card getId2() {
return id2;
public void setId2(Card id2) {
this.id2 = id2;
public Card getId3() {
return id3;
public void setId3(Card id3) {
this.id3 = id3;
public Card getId4() {
return id4;
public void setId4(Card id4) {
this.id4 = id4;
public Card getId5() {
return id5;
public void setId5(Card id5) {
this.id5 = id5;
public Card getId6() {
return id6;
public void setId6(Card id6) {
this.id6 = id6;
public Card getId7() {
return id7;
public void setId7(Card id7) {
this.id7 = id7;
public Card getId8() {
return id8;
public void setId8(Card id8) {
this.id8 = id8;
public Card getId9() {
return id9;
public void setId9(Card id9) {
this.id9 = id9;
public Card getId10() {
return id10;
public void setId10(Card id10) {
this.id10 = id10;
public Card getJ() {
public void setJ(Card j) {
public Card getQ() {
public void setQ(Card q) {
public Card getK() {
public void setK(Card k) {
public Card getA() {
public void setA(Card a) {
&玩家Player类:包含玩家ID和姓名、所持卡片信息
package collectiontest.
import java.util.ArrayL
import java.util.L
public class Player {
//玩家的ID
//玩家姓名
//玩家所持牌
private List&Card& pokerT
public Player() {
public Player(String id, String name, List&Card& pokerType) {
this.name =
this.pokerType = new ArrayList&&();
public String getId() {
public void setId(String id) {
public String getName() {
public void setName(String name) {
this.name =
public List&Card& getPokerType() {
return pokerT
public void setPokerType(List&Card& pokerType) {
this.pokerType = pokerT
扑克牌游戏主类:包含1)扑克牌创建 2)玩家创建 3)洗牌 4)发牌 5)比较胜负
package collectiontest.
import java.util.ArrayL
import java.util.A
import java.util.C
import java.util.HashM
import java.util.HashS
import java.util.L
import java.util.M
import java.util.S
import java.util.S
public class GamsBegin {
// 创建扑克牌
public Set&Poker& cPoker() {
System.out.println("**********开始创建扑克牌**********");
// 创建一副poker
// 四个类型:黑--4、红--3、梅--2、方--1
Set&Poker& pokers = new HashSet&&();
Poker[] poker = { new Poker(1), new Poker(2), new Poker(3),
new Poker(4) };
* Collections工具类的使用
* Collections.addAll(pokers, new Poker(1), new Poker(2), new Poker(3),new Poker(4));
pokers.addAll(Arrays.asList(poker));
System.out.println("**********扑克牌创建成功**********");
// 创建两个玩家
public Map&String, Player& cPlayer() {
System.out.println("**********开始创建玩家**********");
Map&String, Player& map = new HashMap&String, Player&();
// 控制数量
Integer control = 0;
System.out.println("创建两名玩家,根据提示创建");
Scanner console = new Scanner(System.in);
while (true) {
System.out.println("请输入第 "+(control+1)+" 个玩家ID:");
String courseId = console.next();
if (isNumeric(courseId)) {
System.out.println("请输入第 "+(control+1)+" 个玩家姓名:");
String courseName = console.next();
Player players = new Player(courseId, courseName, null);
//保存数据
map.put(courseId, players);
System.out.println("添加第 " + (control + 1) + " 个玩家 " + courseName
+ " 成功");
//数量自加
control++;
System.out.println("*****请输入数字ID*****");
if (control == 2) {
System.out.println("**********玩家创建成功**********");
// 判断输入是否为数字, Character.isDigit()为java方法
public boolean isNumeric(String str) {
for (int i = 0; i & str.length(); i++) {
if (!Character.isDigit(str.charAt(i))) {
* 洗牌 :也可以产生52个不同随机数,实现洗牌
public List&Card& wPoker(Set&Poker& pokers) {
System.out.println("**********开始洗牌**********");
//利用List的有序排序,洗牌之后保存顺序不变
List&Card& listCard = new ArrayList&&();
// 利用Set集合的无序排序,实现洗牌
Set&Card& listSet = new HashSet&&();
//保存到Set集合,无序
for (Poker pk : pokers) {
listSet.add(pk.getId2());
listSet.add(pk.getId3());
listSet.add(pk.getId4());
listSet.add(pk.getId5());
listSet.add(pk.getId6());
listSet.add(pk.getId7());
listSet.add(pk.getId8());
listSet.add(pk.getId9());
listSet.add(pk.getId10());
listSet.add(pk.getJ());
listSet.add(pk.getQ());
listSet.add(pk.getK());
listSet.add(pk.getA());
//保存在List集合,有序
for (Card cd : listSet) {
listCard.add(cd);
System.out.println(cd);
System.out.println("**********洗牌成功**********");
return listC
public Map&String, Player& pushPoker(List&Card& listCard,
Map&String, Player& pMap) {
System.out.println("**********发牌开始**********");
// 控制每人发两张牌后结束
int control = 0;
for (Map.Entry&String, Player& entry : pMap.entrySet()) {
if (control == 0) {
for (int i = 0; i & 3; i = i + 2) {
entry.getValue().getPokerType().add(listCard.get(i));
// 更新map对象
pMap.put(entry.getKey(), entry.getValue());
control++;
} else if (control == 1) {
for (int i = 1; i & 4; i = i + 2) {
entry.getValue().getPokerType().add(listCard.get(i));
// 更新map对象
pMap.put(entry.getKey(), entry.getValue());
control++;
System.out.println("**********发牌成功**********");
public void compareMatch(Map&String, Player& newMap) {
/*比较胜负
* 1.首先取得每个玩家手中最大牌的ID和花色ID。
* 2.比较俩玩家手中最大牌的ID大小,牌大者获胜。
* 3.如果两张牌的ID相等,在比较两张牌的花色ID,花色ID更大着获胜。
List&Player& players = new ArrayList&&();
// 获得两个玩家
for (Map.Entry&String, Player& entry : newMap.entrySet()) {
players.add(entry.getValue());
// 玩家一信息和所持牌
List&Card& playerOne = players.get(0).getPokerType();
//获得最大牌的ID和花色
Integer oneMaxId = Math.max(playerOne.get(0).getId(), playerOne.get(1)
.getId());
Integer oneMaxType = (oneMaxId!=playerOne.get(0).getId()) ? playerOne.get(1).getType() : playerOne.get(0).getType() ;
// 玩家二信息和所持牌
List&Card& playerTwo = players.get(1).getPokerType();
//获得最大牌的ID和花色
Integer twoMaxId = Math.max(playerTwo.get(0).getId(), playerTwo.get(1)
.getId());
Integer twoMaxType = (twoMaxId!=playerTwo.get(0).getId()) ? playerTwo.get(1).getType() : playerTwo.get(0).getType() ;
if (oneMaxId & twoMaxId) {
System.out.println("玩家 : " + players.get(0).getName() + " 获胜!!");
} else if (oneMaxId == twoMaxId) {
if (oneMaxType & twoMaxType) {
System.out
.println("玩家 : " + players.get(0).getName() + " 获胜!!");
System.out
.println("玩家 : " + players.get(1).getName() + " 获胜!!");
System.out.println("玩家 : " + players.get(1).getName() + " 获胜!!");
System.out.println("**********************************************");
System.out.println("玩家 : " + players.get(0).getName() + "的牌是:"
+ showName(playerOne.get(0).getType(), 0) + "--"
+ showName(playerOne.get(0).getId(), 1) + "
+ showName(playerOne.get(1).getType(), 0) + "--"
+ showName(playerOne.get(1).getId(), 1));
System.out.println("玩家 : " + players.get(1).getName() + "的牌是:"
+ showName(playerTwo.get(0).getType(), 0) + "--"
+ showName(playerTwo.get(0).getId(), 1) + "
+ showName(playerTwo.get(1).getType(), 0) + "--"
+ showName(playerTwo.get(1).getId(), 1));
// 显示牌的名称
private String showName(Integer i, Integer type) {
String str = "";
// 显示花色
if (type == 0) {
switch (i) {
str = "方块";
str = "梅花";
str = "红桃";
str = "黑桃";
default: {
// 显示数字
if (type == 1) {
if (i & 11) {
return i.toString();
switch (i) {
case 11: {
str = "J";
case 12: {
str = "Q";
case 13: {
str = "K";
case 14: {
str = "A";
default: {
public static void main(String[] args) {
GamsBegin gb = new GamsBegin();
// 1、创建扑克牌
Set&Poker& pokers = gb.cPoker();
// 2、创建两个玩家
Map&String, Player& pMap = gb.cPlayer();
// 3、洗牌
List&Card& listCard = gb.wPoker(pokers);
// 4、发牌
Map&String, Player& newMap = gb.pushPoker(listCard, pMap);
// 4、比较胜负
gb.compareMatch(newMap);
运行结果:
**********开始创建扑克牌**********
**********扑克牌创建成功**********
**********开始创建玩家**********
创建两名玩家,根据提示创建
请输入第& 1 个玩家ID:
请输入第& 1 个玩家姓名:
添加第 1 个玩家& 周星驰 成功
请输入第& 2 个玩家ID:
请输入第& 2 个玩家姓名:
添加第 2 个玩家& 周润发 成功
**********玩家创建成功**********
**********开始洗牌**********
Card [id=9, type=3]
Card [id=11, type=4]
Card [id=13, type=3]
Card [id=8, type=3]
Card [id=5, type=2]
Card [id=6, type=1]
Card [id=4, type=3]
Card [id=5, type=4]
Card [id=2, type=3]
Card [id=9, type=2]
Card [id=9, type=4]
Card [id=14, type=2]
Card [id=9, type=1]
Card [id=2, type=1]
Card [id=2, type=4]
Card [id=7, type=4]
Card [id=11, type=1]
Card [id=10, type=1]
Card [id=14, type=4]
Card [id=14, type=3]
Card [id=12, type=2]
Card [id=2, type=2]
Card [id=10, type=2]
Card [id=7, type=1]
Card [id=7, type=3]
Card [id=8, type=2]
Card [id=4, type=4]
Card [id=13, type=4]
Card [id=14, type=1]
Card [id=12, type=1]
Card [id=5, type=1]
Card [id=6, type=4]
Card [id=12, type=4]
Card [id=11, type=2]
Card [id=10, type=3]
Card [id=3, type=4]
Card [id=12, type=3]
Card [id=4, type=2]
Card [id=4, type=1]
Card [id=6, type=2]
Card [id=5, type=3]
Card [id=8, type=4]
Card [id=3, type=2]
Card [id=13, type=2]
Card [id=7, type=2]
Card [id=3, type=3]
Card [id=3, type=1]
Card [id=6, type=3]
Card [id=8, type=1]
Card [id=11, type=3]
Card [id=13, type=1]
Card [id=10, type=4]
**********洗牌成功**********
**********发牌开始**********
**********发牌成功**********
玩家 : 周星驰 获胜!!
**********************************************
玩家 : 周星驰的牌是:红桃--9&& 红桃--K
玩家 : 周润发的牌是:黑桃--J&& 红桃--8
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
大家感兴趣的内容
12345678910
最近更新的内容
常用在线小工具纸牌游戏最全纸牌游戏集合闪退怎么解决_图文攻略_全通关攻略_高分攻略_百度攻略
【纸牌游戏集合】闪退怎么办,【纸牌游戏集合】不能运行无法游戏等问题出现都是有一定原因的,下面口袋小编将ios和安卓版【纸牌游戏集合】中可能会出现的闪退原因列举出来,并提出一些可行性较高的解决方法。1.游戏版本不对(IOS/安卓)由于这款游戏比较新,一些小的游戏下载站很有可能只是匆匆下载了适合自己的安卓手机版本的游戏包就打包上传了,这种情况下你的手机和下载下来的游戏包其实是不兼容的,建议各位安卓玩家前往googlestore直接下载原版进行游戏,或者前往百度攻略&口袋巴士拇指玩等大型游戏站点根据自己的手机机型来下载合适的【纸牌游戏集合】。精彩内容,尽在百度攻略:https://gl.baidu.com2.分辨率不兼容(安卓)如果您是新版的1080P手机或者一些和主流分辨率不太一样的手机的话那么很有可能是因为分辨率的问题,手机分辨率直接影响到游戏能否流畅运行,而【纸牌游戏集合】作为一款刚出的新游戏很有可能没有考虑到更多分辨率的兼容问题,出现这种情况只能说很遗憾,我们不得不等游戏公司更新才能解决这个问题啦。3.系统版本过低/不符(IOS/安卓)精彩内容,尽在百度攻略:https://gl.baidu.com如果您是IOS版本IOS5或者以下以及安卓2.3.0以下版本的手机的话那么您的手机系统版本有些过低了,没有达到【纸牌游戏集合】要求的最低系统版本,如果强制运行很有可能会导致设备出现问题,建议升级系统版本之后再进行游戏。另外如果是MIUI和FLYME用户的话出现闪退的可能性也许更高,因为定制系统存在一些FC的问题,出现这种情况建议升级您的定制系统至最新版或者下载一些防FC的rom包重新刷机。4.杀毒软件(安卓)精彩内容,尽在百度攻略:https://gl.baidu.com虽然基本上不存在这个问题,但是一些版本老旧的杀毒软件还是会在不知名的情况下禁止一些游戏运行,请检查你的手机杀毒软件黑名单和屏蔽列表中是否出现了【纸牌游戏集合】,如果出现,那么闪退就是因为杀毒软件所致的了。5.无google play框架(安卓)该游戏如果想要在安卓系统上运行必须依赖google play框架,如果你的手机没有goole应用商店的话可能很多游戏都无法正常运行,建议大家在网上找一个googleplay框架安装一下然后在看看游戏能不能运行。精彩内容,尽在百度攻略:https://gl.baidu.com一般来说闪退的可能性就是这些了,除此之外因为手机系统的不稳定性等问题可能还会发生很多不同的问题,此时我们只能使用最后一招重装游戏了,建议在百度攻略&口袋巴士游戏库下载最新的【纸牌游戏集合】并重新安装。如果进行过这些措施之后还是无法正常运行的话请在留言中反应,口袋小编会尝试寻找更多的闪退解决方法,感谢各位玩家的帮助。
纸牌游戏-相关攻略推荐
纸牌游戏-综合攻略

我要回帖

更多关于 澳门赌场牌类游戏 的文章

 

随机推荐