Coder Social home page Coder Social logo

chess_engine's Issues

Checkmate/stalemate evaluation

RN if node has no children, we claim that the position is either with checkmate or with stalemate. While it's correct generally, it works wrong for the deepest layer (we simply don't generate children for nodes there)

vector subscript out of range

Get this error every time in "5r1k/2R3Rp/8/8/8/8/8/K7 w - - 0 1" position with tree depth 5 after some time of running the program. Not tested on Linux yet

updating position values

The function Node::updateParentsPositionValue() is currently not used, cause it works wrong in case of zugzwangs.

Example case
Node N has position value X. All children are created, we don't have any better value (in terms of MiniMax), so N still has value X. But after creating all possible grandchildren it's obvious, that position has zugzwang, and any move makes position value worse. But Node::updateParentsPositionValue() can't update N's value, because it's smaller than all children have. Is it actually possible to update position value without checking all the children?

King changes color

If the black (and only black) king is located on h8 field, and white take any piece with check, it becomes white for some reason

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.