stockfish

Integrates the Stockfish chess engine with Python

MIT License

Downloads
21.2K
Stars
274
Committers
10
stockfish - 3.28.0 Latest Release

Published by zhelyabuzhsky over 2 years ago

What's Changed

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.27.0...3.28.0

stockfish - 3.27.0

Published by zhelyabuzhsky over 2 years ago

What's Changed

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.26.0...3.27.0

stockfish - 3.26.0

Published by zhelyabuzhsky over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.25.2...3.26.0

stockfish - 3.25.2

Published by zhelyabuzhsky over 2 years ago

What's Changed

  • Discarded any remaining _stockfish.stdout lines, if a function is done reading but some lines are left over. Prevented the wdl bug mentioned in issue #92.
  • Got rid of '-' chars in the major version, in case there are any.
  • Updated the readme with some explanations in the parameters and major version sections.

Great work by @johndoknjas in https://github.com/zhelyabuzhsky/stockfish/pull/93

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.24.0...3.25.2

stockfish - 3.24.0

Published by zhelyabuzhsky over 2 years ago

What's Changed

  • Added the function that says whether a move will be a direct capture, en passant, or not a capture.
  • Added the function that says what's on a given square.
  • Added the function allowing the user to update the engine parameters, on an already created Stockfish instance.
  • If the user wants to set the elo rating/skill level to a certain value (in a call to either the constructor or the update function above), then also set UCI_LimitStrength to be true/false respectively.
  • If the user updates the engine parameters, call the set_position() function again.
  • Got rid of some unneeded code for WDL stuff.
  • Updated a few default parameters to match with the current stockfish defaults.
  • Modified the test_get_evaluation_cp function.
  • Updated a few tests to get them to pass with SF 15.
  • Used the position mentioned in issue #65 to create a test case for Chess960.
  • Added a test for the Stockfish constructor.

Great work done by @johndoknjas in https://github.com/zhelyabuzhsky/stockfish/pull/89

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.23.0...3.24.0

stockfish - 3.23.0

Published by zhelyabuzhsky over 2 years ago

What's Changed

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.22.1...3.23.0

stockfish - 3.22.1

Published by zhelyabuzhsky almost 3 years ago

What's Changed

  • Modified tests for various SF versions by @johndoknjas in https://github.com/zhelyabuzhsky/stockfish/pull/83
    • fixed and improved some tests
    • a new method is_development_build_of_engine is added to models.py, that determines if the stockfish major version represents a dd/mm/yy date (which is the case if SF is a development build instead of a main release)

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.22.0...3.22.1

stockfish - 3.22.0

Published by zhelyabuzhsky almost 3 years ago

What's Changed

  • Prevented potential errors with the SF process, and misc. by @johndoknjas in https://github.com/zhelyabuzhsky/stockfish/pull/80

    • If the user calls the __del__ method themselves, this could potentially result in an error, since the OS may call __del__ later. So in each call to __del__, ensure that self._stockfish is still running (i.e., = None).
    • A check is also implemented in the _put function, such that if self._stockfish isn't running, or if the "quit" command has already been sent to Stockfish, then the stdin.write() and stdin.flush() lines won't be executed.
    • Renamed the self.stockfish instance variable to self._stockfish, in order to indicate that it should be treated as private.
    • Changed the default search depth from 2 to 15, in case the user doesn't set it themselves. 15 is a good depth value since it's nearly instantaneous while still being fairly strong.
    • Added to the example in the readme for creating a Stockfish instance, in order to show how to send all the optional arguments together.
  • Fixed README.md by @zhelyabuzhsky in https://github.com/zhelyabuzhsky/stockfish/pull/82

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.21.0...3.22.0

stockfish - 3.21.0

Published by zhelyabuzhsky almost 3 years ago

What's Changed

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.20.0...3.21.0

stockfish - 3.20.0

Published by zhelyabuzhsky almost 3 years ago

What's Changed

Full Changelog: https://github.com/zhelyabuzhsky/stockfish/compare/3.19.0...3.20.0

stockfish - 3.19.0

Published by zhelyabuzhsky almost 3 years ago

  • dropped support of python 3.6
stockfish - 3.18.0

Published by zhelyabuzhsky almost 3 years ago

  • added column labels in get_board_visual (thank you, @JanFranchini)
stockfish - 3.17.1

Published by zhelyabuzhsky almost 3 years ago

  • fixed get_stockfish_major_version method when version of stockfish is floating-point number (Thank you, @Pavocracy)
stockfish - 3.17.0

Published by zhelyabuzhsky over 3 years ago

  • added method make_moves_from_current_position that allows the position to be updated by making moves from the current position
  • small internal improvement

Thank you @johndoknjas :)

stockfish - 3.16.0

Published by zhelyabuzhsky over 3 years ago

  • added the get_top_moves function, which gives info on Stockfish's top PVs
  • self._parameters is assigned to a deep copy of self.default_stockfish_params, which prevents the latter from being modified when self._parameters.update(parameters) happens

Thank you @johndoknjas

stockfish - 3.15.0

Published by zhelyabuzhsky over 3 years ago

  • Fixed unique parameter issue for multiple objects #53 (thank you @VivekThazhathattil)
stockfish - 3.14.0

Published by zhelyabuzhsky over 3 years ago

  • Added elo rating support

Thank you @mickkn

stockfish - 3.13.0

Published by zhelyabuzhsky almost 4 years ago

  • added stockfish quit command to class destructor
stockfish - 3.12.1

Published by zhelyabuzhsky almost 4 years ago

  • fixed get_evaluation function
  • added stockfish 12 support
stockfish - 3.12.0

Published by zhelyabuzhsky almost 4 years ago

  • added get_stockfish_major_version function