Giter Site home page Giter Site logo

Comments (2)

Nihisil avatar Nihisil commented on June 17, 2024

Hi @ycdoit. Thanks for report. Unfortunately I don't have enough time to debug it properly and without real test cases I can't say should be your suggestions applied or not.

So, without hand examples that will fail on the original code and will pass with your changes I prefer to not change anything :)

from tenhou-python-bot.

ycdoit avatar ycdoit commented on June 17, 2024

Ok, that's fine.

But I would like to explain my changes.

  1. |= does not un-check the bit, ^= actually can do this.
  2. There is still one tile left when the tile count == 4, and 2 for a pair and 1 for a chow. If you use run(depth+1), you will left one tile unprocessed. It's not easy to test because in most cases, 4 tiles are used for 3 + 1, not for 2 + 1 + 1.

from tenhou-python-bot.

Related Issues (20)

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.