javabbs开源论坛系统

功能强大、开源、代码通俗易懂、注释详细、面向二次开发友好!

FreeCMS团队又一力作!打造更好的中国开源jsp java 论坛系统!

javabbsV1.2已发布!



在线演示 立即购买 下载用户手册
客服QQ: 124812878 联系电话: 18339991503 Email: freeteam@foxmail.com
点击查看FreeCMS商业版开源CMS系统 点击查看shop4j开源java商城系统

Java 暴力破解扑克骗局 - 学海无涯--Java学习笔记

加入收藏夹】     【打印】     【关闭】 来源: 日期:2017-05-21 04:00:06 点击量: 收藏

{ "♣3", "♦4", "♣4", "♦5", "♠5", "♠6", "♥6", "♥7", "♦7", "♥9", "♣9","♦Q", "♣Q", "♥Q", "♣K", "♦K", "♠K", "♣2" }
{ "♥A", "♦A", "♥J", "♦J" } (对J对A或对10对A)
可以出单张,一对,三张,三带二,顺子,同花,18张先出。
还有变种是对J换成对10或者对9换成对10,花色不变

其实多张是可以赢得,但是一步出错了就会输
暴力破解的得到的是
唯一获胜出牌顺序如下
♥6 ♠6 ♣3 ♦4 ♣4 后面就从下一张一张出
前面5张是关键,顺序不能错。而且每次出一张牌少的都不能出,出了之后对应也很复杂,但是都是可以应对的。


所有应对策略简略如下
♠6 | ♥J | ♥Q | ♥A | ♣2 | PASS | ♣3♣4♠5♥6♥7 | PASS | ♦4♦5♦7♦9♦Q♦K | PASS | ♣9♥9 | PASS | ♣K♠K | PASS | ♣Q
♠6 | ♥J | ♥Q | PASS | ♣3♣4♠5♥6♥7 | PASS | ♦4♦5♦7♦9♦Q♦K | PASS | ♣Q | PASS | ♣K | PASS | ♠K | PASS | ♣2 | PASS | ♣9♥9
♠6 | ♥A | ♣2 | PASS | ♣3♣4♠5♥6♥7 | PASS | ♦4♦5♦7♦9♦Q♦K | PASS | ♥Q♣Q | PASS | ♣K♠K | PASS | ♣9♥9
♠6 | PASS | ♥6 | ♥J | ♥Q | ♥A | ♣2 | PASS | ♣K♦K♠K♦4♣4 | PASS | ♠5♦5 | PASS | ♥7♦7 | PASS | ♣9♥9 | PASS | ♦Q♣Q | PASS | ♣3
♠6 | PASS | ♥6 | ♥J | ♥Q | PASS | ♣3 | ♦J | ♣Q | PASS | ♦Q | PASS | 4 | 4 | 5 | 5 | 7 | 7 | 9 | 9 | K | K | K | 2
♠6 | PASS | ♥6 | ♥A | PASS | ♦J♥J | ♦Q♥Q | PASS | ♣3♣9♣Q♣K♣2 | PASS | 44 | 55 | 77 | KK | 9
♠6 | PASS | ♥6 | PASS | ♣3 | ♥J | ♥Q | PASS | ♦4 | ♦J | ♦K | PASS | 4 | 5 | 5 | 7 | 7 | 9 | 9 | Q | Q | K | K | 2
♠6 | PASS | ♥6 | PASS | ♣3 | ♥A | PASS | ♦J♥J | ♦Q♥Q | PASS | 44 | 55 | 77 | 99 | KKK | 2 | Q
♠6 | PASS | ♥6 | PASS | ♣3 | PASS | ♦4 | ♥J | ♥Q | PASS | ♦4 | ♦J | ♣K | PASS | 5 | 5 | 7 | 7 | 9 | 9 | Q | QK | K | 2
♠6 | PASS | ♥6 | PASS | ♣3 | PASS | ♦4 | ♥A | PASS | ♥J♦J | ♥Q♦Q | PASS | ♣4♣9♣Q♣K♣2 | PASS | 55 | 77 | KK | 9
♠6 | PASS | ♥6 | PASS | ♣3 | PASS | ♦4 | PASS | ♣4 | ANY | ♣2 | PASS | KKK55 | QQQ77 | 99

暴力破解Code:
https://github.com/andyjojo/poke

注: 如果不可以出同花那少的必赢


上一条

下一条

相关新闻
自定义表单