GithubHelp home page GithubHelp logo

landlordsendgame's Introduction

斗地主残局

运行方式

  1. 直接在命令行输入指令 python search.py 即可运行。

  2. 按照提示输入地主(先手)和农民(后手)的手牌,用字母“Y”代表“小王”,字母“Z”代表“大王”,样例如下:

请输入地主牌:K Q J 9 9 8 7 6 5 5 4
请输入农民牌:Z 2 A A A Q 9 6 4 3
  1. 程序输出“完成”字样后会提示地主应该打出的第一手牌,然后程序将等待你继续输入农民的应对。输入应对的格式与上抑制,样例如下,如果农民“不出”,直接打回车即可。
完成!
地主应出 ['4', '5', '6', '7', '8']
请输入农民的出牌:
地主应出 ['9', '9']
请输入农民的出牌:A A
地主应出 []
……

声明

  • 为了加快搜索效率,程序进行了剪枝操作;
  • 程序不使用多线程,适合普通 PC 运行;
  • 程序没有对重复搜索进行任何优化;
  • 搜索困难关卡耗时较长(数小时),内存开销较大(20 GB)。

运行效果

成功破解微信小游戏“欢乐斗地主”残局闯关 2018 年 1 月赛季全部 50 个关卡。

残局第 25 关开局 残局第 25 关结束 残局第 25 关解法 残局全通关

landlordsendgame's People

Contributors

an0nym6 avatar

Watchers

一键安装脚本 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.