GithubHelp home page GithubHelp logo

landlordsendgame's People

Contributors

an0nym6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

landlordsendgame's Issues

运行一会出错了

请输入地主牌:3 3 4 5 6 9 9 Q K 2 Y Z
请输入农民牌:5 7 9 10 10 J J Q K A 2

Traceback (most recent call last):
File "D:\桌面\LandlordsEndgame-master\LandlordsEndgame-master\search.py", line 221, in
if searchTree(playerA, playerB, -1, -1, 0, root):
File "D:\桌面\LandlordsEndgame-master\LandlordsEndgame-master\search.py", line 199, in searchTree
if len(newPlayerB) == 0 or searchTree(newPlayerA, newPlayerB, move_['p'], move_['s'], level + 1, count) == 0:
File "D:\桌面\LandlordsEndgame-master\LandlordsEndgame-master\search.py", line 199, in searchTree
if len(newPlayerB) == 0 or searchTree(newPlayerA, newPlayerB, move_['p'], move_['s'], level + 1, count) == 0:
File "D:\桌面\LandlordsEndgame-master\LandlordsEndgame-master\search.py", line 206, in searchTree
tree = tree[:temp]

2G MemoryError

playerAStr = "2 A A Q Q Q 9 6 4 3 3"
playerBStr = "2 A A K K K J 8 8 6 5 4"
try it.

will MemoryError, because 32bit 2G top limit.

我怎么执行出错?

if level < 2:
print ' ' * level * 2 + '正在尝试', i, '/', len(moves)
python新手,没看懂啊,我下载了执行出错,应该怎么修改?

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.