GithubHelp home page GithubHelp logo

n0rthernl1ghts / network-uci-bridge Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 47 KB

Bridge to a network UCI engine for chess GUIs that support only a local binary

License: MIT License

Dockerfile 12.19% Makefile 5.00% Go 52.66% HCL 30.15%
chess golang uci-protocol

network-uci-bridge's Introduction

network-uci-bridge

Bridge to a network UCI engine for chess GUIs that support only a local binary

Chess GUI <- exec -> uci-bridge (binary) <- network connection -> UCI engine

Usage

At the moment, compiled binaries are available from the prebuilt docker images.

ghcr.io/n0rthernl1ghts/uci-bridge:latest

Example usage within your own Dockerfile:

FROM scratch AS rootfs

# Copy compiled binary from the image
COPY --from=ghcr.io/n0rthernl1ghts/uci-bridge:latest ["/usr/local/bin/uci-bridge", "/usr/local/bin/"]


FROM alpine:3.18 AS my-chess-gui

COPY --from=rootfs ["/", "/"]

(...)

CLI Usage:

echo "isready" | docker run --init --rm -e "UCI_TCP_HOST=192.168.1.20" -e "UCI_TCP_PORT=3333" -i ghcr.io/n0rthernl1ghts/uci-bridge:latest

If everything is working correctly, you should see readyok response from the engine.
The same applies to any other UCI command.

Environment variables

Configuration is very simple and done via environment variables.

UCI_TCP_HOST=uci-engine.example.com
UCI_TCP_PORT=3333

When running outside docker environment, you can use .env file to set environment variables.
You can also export them to the environment or run command like this:

echo "isready" | UCI_TCP_HOST=uci-engine.example.com UCI_TCP_PORT=3333 uci-bridge

Project status

This project is in early development stage. As is, it should be considered experimental.

network-uci-bridge's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.