Skip to content

Stockfish-dev with added functionalities and modifications

Notifications You must be signed in to change notification settings

rubenkku/SF-dev-XXXX-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

SF-dev-XXXX-ChatGPT

Stockfish-dev with Enhanced Functionalities and Modifications

This is a private version of Stockfish-dev (latest Stockfish development source code) with added functionalities and slight modifications to specific areas of interest.

The name "ChatGPT" is included because this project was made possible in part with the assistance of ChatGPT in modifying the required parts of the source code. Nevertheless, it also involves significant human effort and trial-and-error to achieve the desired outcomes.

The code for creating this modified version will not be publicly available for now, as it is under active experimentation and development. At some point, the compiled engine or one of its variants may be shared privately with supporters of the project.

Current Changes and Added Functionalities

Functionalities Already Implemented and Working:

  • 7-man Tablebases Integration: Moves are made instantly by querying the tablebases, and the engine chooses the best move accordingly. The tablebase move picker algorithm has been revised to prioritize selecting the longest path in drawn or lost games. It aims to avoid repeated moves from the tablebases whenever possible, thereby maximizing game duration and creating time pressure for the opponent.
  • BIN Book Support: Added support for upto four BIN books with a "best move" option (true or false).
  • Enhanced BIN Polybook Functionality:
    • Moves are picked based on their exact weight percentage (% = move weight / sum of all move weights for that position) when the "best move" option is set to false.
    • Added a "minimum %" threshold: moves below this percentage will not be chosen.
    • This improves book variety while maintaining controlled risk factors.
  • Enhanced Book Move Information:
    • Include more details in the engine output about the chosen book move, such as the book it originates from and the other available moves for the position.
  • Streamlined Engine Output:
    • Removed NNUE-related messages from every move.
    • Displayed book moves with their respective probabilities in the output.
    • Displayed tablebases best move WDL and DTZ values and repeated moves avoided.
  • "Minimum Thinking Time" Option:
    • Ensures the engine searches for at least a specified number of milliseconds before choosing the best move.
    • Helps prevent instant 1-ply moves under time pressure.
  • More Book Slots:
    • It has been added 4 BIN Book slots in total
  • "ChessDB Live Book":
    • Added the ChessDB Live Book (https://www.chessdb.cn/queryc_en/) with an improved move selection algorithm that chooses only the best moves (rank 2), sorted by winrate.
    • Added a "Variety" option, allowing the selection of a move among the top X moves sorted by score.
    • Added "Send Moves" option, it will send to ChessDB all moves that were not in the book in the first query.
    • A timeout can be set (maximum time to wait for the server's response), as well as a retry option, which will attempt up to 10 retries if the response times out.
    • The ChessDB book functionality is automatically disabled when there are less than 40 seconds on the clock, avoiding delays in the endgame.

Planned Functionalities:

  • "No-Move Book" Option:
    • A BIN book slot where, if the selected book move exists in the "no-move-book," the engine will enter MultiPV search mode to find a different move.
  • "Experience book":
    • Incorporate experience or learning function, with auto-fix games lost.

Purpose and Vision

This project does not aim to create a stronger Stockfish engine but rather to add new functionalities and explore innovative ideas. All enhancements are implemented without altering the core search functions that make Stockfish the strongest chess engine.

If you're interested in testing this engine, consider showing your support in exchange for collaboration or resources you can offer.

Thank you for reading!

About

Stockfish-dev with added functionalities and modifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published