# SME (SAN Kit Minimal Engine)

Minimal CECP engine based on SAN Kit.

A minimal CECP engine built directly on the SAN Kit library. It **plays instantly**: no
search, no time management, no pondering — whenever it's asked to
move, it just asks the chosen move-selection strategy for one move
and plays it right away.

The strategy is picked with a command-line argument:

```sh
./xboard-engine eat     # default: best simple capture, else a plausible move
./xboard-engine ran     # a purely random legal move
./xboard-engine gtp     # the "Gillogly TECH program" strategy
./xboard-engine sc0     # Stanback Chess Program, internal variant
./xboard-engine sc1     # Stanback Chess Program, external variant
./xboard-engine -h      # usage / list of strategies
```

## Usage

```
./xboard-engine [STRATEGY]
```

Where the optional parameter STRATEGY has one of the following values: `ran`, `sc0`, `eat`, `gtp`, `sc1`.

But in fact there are only two truly distinct behaviors: `ran` and `eat`.

The default value is `eat`.

## Observations

Add a `capacity_resigned` variable to fix the flaw in version B.

## gs_wcmt

**`gs_wcmt`/`gs_bcmt` (checkmate) are swapped in the SAN Kit's own
result tables.** `cv_gtc_gsv[]` in `sanint.c` maps `gs_wcmt`
("White is checkmated", i.e. Black wins) to `gtc_wwin` ("White
win") -- and `gs_bcmt` the same way round.
