Skip to content

Commit

Permalink
Updated the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Jan 3, 2025
1 parent be20491 commit b110d42
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/heuristics.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,18 +271,18 @@ use Chess\Function\CompleteFunction;
use Chess\Variant\Classical\Board;

$f = new CompleteFunction();

$board = new Board();
$movetext = '1.e4 d5 2.exd5 Qxd5';

$sanExtractor = new SanExtractor($f, $movetext, new Board());
```

### Evaluation Array

This is how component number four, which is to say the normalization of the fourth evaluation array, is obtained from the example above.

```php
print_r($sanExtractor->eval[4]);
$eval = SanExtractor::eval($f, $board, $movetext);

print_r($eval[4]);
```

```text
Expand Down Expand Up @@ -330,7 +330,9 @@ The evaluation array can be plotted in a way that is easy for chess players to u
### Mean

```php
print_r($sanExtractor->mean);
$mean = SanExtractor::mean($f, $board, $movetext);

print_r($mean);
```

```text
Expand All @@ -348,7 +350,9 @@ print_r($sanExtractor->mean);
### Standard Deviation

```php
print_r($sanExtractor->sd);
$sd = SanExtractor::sd($f, $board, $movetext);

print_r($sd);
```

```text
Expand Down

0 comments on commit b110d42

Please sign in to comment.