StockfishC

Overview

Stockfish main evaluation in C. A reimplementation of the evaluation function that evaluate a given chess position.

Files

This distribution of Stockfish consists of the following files:

  • README.md, the file you are currently reading.
  • LICENCE.md, a text file containing the GNU General Public License.
  • src, a subdirectory containing the full source code. ## Usage
  • Add src files into your C project.
  • Include "global" and "eval" headers in your target C file:
  • Use "global.h" to define the position (Pos structure) that you want to evaluate. Below you will find an example of the initial position (pay attention to placement, it looks like you are looking from under the table). The whites are in capital letters.
  • Use "eval.h" to evaluate the position by calling main_evaluation function. The continuation of the previous exemple:
  • Use the result to play the best move !

Built With

Share this project:

Updates