GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - acdemiralp/uci: Single header implementation of the Universal Chess Interface (UCI) protocol.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
cmake
cmake
 
 
docs
docs
 
 
include/uci
include/uci
 
 
tests
tests
 
 
CMakeLists.txt
CMakeLists.txt
 
 
license.txt
license.txt
 
 
readme.md
readme.md
 
 

Repository files navigation

UCI

The Universal Chess Interface (UCI) is an open chess communication protocol used by chess engines to communicate with graphical user interfaces.

This repository contains a single header implementation of the UCI protocol (April 2006) in C++11. Requires boost::signals2.

Example Usage

chess_engine your_engine;
uci uci;

// Register callbacks to the messages from the UI and respond appropriately.
uci.receive_uci.connect([&] ()
{
  uci.send_id("Engine name", "Author name");
  uci.send_option_uci_limit_strength(false);
  uci.send_uci_ok();
});
uci.receive_is_ready.connect([&] ()
{
  uci.send_ready_ok();
});
uci.receive_position.connect([&] (const std::string& fen, const std::vector<std::string>& moves)
{
  your_engine.set_position(fen, moves);
});
uci.receive_go.connect([&] (const std::map<uci::command, std::string>& parameters)
{
  your_engine.start_search();
});

// Start communication with the UI through console.
uci.launch();

About

Single header implementation of the Universal Chess Interface (UCI) protocol.

Topics

chessuniversal-chess-interface

Resources

Readme
MIT license
Activity

Stars

11 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.