Coder Social home page Coder Social logo

doudizhuai's Introduction

斗地主人工智能的Python实现方案要点:

  1. 叫地主决策
  2. 出牌决策
  3. 对局数据,模拟3个玩家斗地主,产生数据训练

执行命令: python Play_DouDizhu.py

玩家1叫地主

出牌次序: 0 地主[1]剩余牌: 5, 5, 5, 6, 7, 8, 8, 9, 10, 10, J, Q, Q, Q, K, K, A, A, 2, 大王 地主[1]出牌: 三带一: 5*3,6

出牌次序: 1 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, J, J, J, A, 2, 小王 农民[2]出牌: 三带一: J*3,2

出牌次序: 2 农民[0]剩余牌: 3, 4, 4, 4, 5, 6, 6, 6, 7, 9, 10, Q, K, K, A, 2, 2 农民[0]出牌: 过

出牌次序: 3 地主[1]剩余牌: 7, 8, 8, 9, 10, 10, J, Q, Q, Q, K, K, A, A, 2, 大王 地主[1]出牌: 三带一: Q*3,2

出牌次序: 4 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 5 农民[0]剩余牌: 3, 4, 4, 4, 5, 6, 6, 6, 7, 9, 10, Q, K, K, A, 2, 2 农民[0]出牌: 过

出牌次序: 6 地主[1]剩余牌: 7, 8, 8, 9, 10, 10, J, K, K, A, A, 大王 地主[1]出牌: 顺子:7--J

出牌次序: 7 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 8 农民[0]剩余牌: 3, 4, 4, 4, 5, 6, 6, 6, 7, 9, 10, Q, K, K, A, 2, 2 农民[0]出牌: 过

出牌次序: 9 地主[1]剩余牌: 8, 10, K, K, A, A, 大王 地主[1]出牌: 对子: K*2

出牌次序: 10 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 11 农民[0]剩余牌: 3, 4, 4, 4, 5, 6, 6, 6, 7, 9, 10, Q, K, K, A, 2, 2 农民[0]出牌: 对子: 2*2

出牌次序: 12 地主[1]剩余牌: 8, 10, A, A, 大王 地主[1]出牌: 过

出牌次序: 13 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 14 农民[0]剩余牌: 3, 4, 4, 4, 5, 6, 6, 6, 7, 9, 10, Q, K, K, A 农民[0]出牌: 三带一: 4*3,3

出牌次序: 15 地主[1]剩余牌: 8, 10, A, A, 大王 地主[1]出牌: 过

出牌次序: 16 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 17 农民[0]剩余牌: 5, 6, 6, 6, 7, 9, 10, Q, K, K, A 农民[0]出牌: 三带一: 6*3,5

出牌次序: 18 地主[1]剩余牌: 8, 10, A, A, 大王 地主[1]出牌: 过

出牌次序: 19 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 20 农民[0]剩余牌: 7, 9, 10, Q, K, K, A 农民[0]出牌: 对子: K*2

出牌次序: 21 地主[1]剩余牌: 8, 10, A, A, 大王 地主[1]出牌: 对子: A*2

出牌次序: 22 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 过

出牌次序: 23 农民[0]剩余牌: 7, 9, 10, Q, A 农民[0]出牌: 过

出牌次序: 24 地主[1]剩余牌: 8, 10, 大王 地主[1]出牌: 单牌: 8

出牌次序: 25 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A, 小王 农民[2]出牌: 单牌: 小王

出牌次序: 26 农民[0]剩余牌: 7, 9, 10, Q, A 农民[0]出牌: 过

出牌次序: 27 地主[1]剩余牌: 10, 大王 地主[1]出牌: 单牌: 大王

出牌次序: 28 农民[2]剩余牌: 3, 3, 3, 4, 7, 7, 8, 8, 9, 9, 10, A 农民[2]出牌: 过

出牌次序: 29 农民[0]剩余牌: 7, 9, 10, Q, A 农民[0]出牌: 过

出牌次序: 30 地主[1]剩余牌: 10 地主[1]出牌: 单牌: 10 地主[1] 胜利!

doudizhuai's People

Contributors

zhozhou avatar

Watchers

James Cloos avatar  avatar

Forkers

1275195766

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.