Universal Chess Interface client-server conversation
Project description
Description
This package provides a pure Python client-server Universal Chess Interface to a chess engine intended for analysing positions rather than playing games.
Installation Instructions
Usually this package will be installed by installing ChessTab.
Install the package by typing
python setup.py install
at the command prompt with setup.py in the current directory.
You may need to give the path and version of Python depending on your system’s configuration:
<path to python>/python<version> setup.py install
For example
C:\Python36\python setup.py install
on Microsoft Windows or
python3.6 setup.py install
on Unix-like systems.
Use Python 3.6 or later.
Run
The command to run the server is:
python -m uci_net.tcp_driver [port] [allowed callers] path [options]
A path to a UCI chess engine must be given.
See chess engine documentation for options.
By default anyone is allowed to use the server, subject to firewall restrictions. A comma separated list of hostnames prevents hosts not in the list from using the server.
Conections to the server are made on port ‘port’. The default is 11111.
Assuming a hostname ‘stockfishbox’ with IP address 192.168.0.1 and the default port, suitable engine definition records in ChessTab are:
‘//stockfishbox:11111?name=Stockfish 12’ or ‘//192.168.0.1:11111?name=Stockfish 12’.
The record says ‘name=Stockfish 12’ because ‘Stockfish 12’ is the ‘id name’ value returned by Stockfish 12 in response to the ‘uci’ command.
Notes
Project name and package name changed from ‘uci’ to ‘uci-net’ prior to upload to PyPI.
The version numbers of uci-net continue on from uci.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file uci-net-1.2.2.tar.gz
.
File metadata
- Download URL: uci-net-1.2.2.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28a4bc115fd5b46ebe07be7915e624f4168bddbc95c854f6836d42a73d77b43e |
|
MD5 | 09e877684057ec7da09433d1c1f61bcd |
|
BLAKE2b-256 | b0c127d6a466b9378354bb9aa250011bfab33e920d2506f364037d96f963288d |