# Smirf UCI

![Logo](logo/smirf.png)

UCI interface for SMIRF chess engine. Inspired by [Smirfoglot](https://home.hccnet.nl/h.g.muller/smirf.html).

## Usage

The repository includes scripts for playing against Smirf UCI in WinBoard or in XBoard.

Indeed, *Smirf UCI* works also under Linux, with Wine! Below, a screenshot of Smirf UCI loaded in XBoard:

![Screenshot](screenshots/xboard-chess960.png)

Example of command-line for cutechess-cli (still under Linux):

```
-engine name="Smirf Uci" cmd="wine32" arg="smirf.exe" dir="smirf-uci-directory" proto="uci"
```

Smirf UCI supports only traditional chess and chess 960. If you wish to play another variant, use Smirfoglot. Smirfoglot supports all the variants that SMIRF engine can play, that is: *normal, fischerandom, capablanca, gothic, caparandom*. (Capablanca Random Chess is a variant invented by Reinhard Scharnagl, the author of SMIRF engine.)

## Command-line option

In version 0.0.3, a command-line option has been added, allowing to choose a log level, from 0 (no log) to 3 (very verbose):

```
smirf.exe --loglevel=1
```

The default value is 0.

## Compilation

Smirf UCI is compiled with Free Pascal.

Provided you have *make* and Free Pascal 32-bit installed, you can compile *Smirf UCI* by opening a console and typing `make`.
