{"id":27456926,"url":"https://github.com/lucasart/demolito","last_synced_at":"2025-04-15T18:40:37.218Z","repository":{"id":27050653,"uuid":"30515955","full_name":"lucasart/Demolito","owner":"lucasart","description":"UCI Chess Engine","archived":false,"fork":false,"pushed_at":"2025-03-26T07:19:53.000Z","size":1096,"stargazers_count":48,"open_issues_count":2,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-26T08:26:28.410Z","etag":null,"topics":["ai","c","chess","chess-engine","uci"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ysrc/xunfeng","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-09T03:01:53.000Z","updated_at":"2025-03-26T07:19:57.000Z","dependencies_parsed_at":"2025-03-26T08:33:26.436Z","dependency_job_id":null,"html_url":"https://github.com/lucasart/Demolito","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasart%2FDemolito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasart%2FDemolito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasart%2FDemolito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasart%2FDemolito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasart","download_url":"https://codeload.github.com/lucasart/Demolito/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249130583,"owners_count":21217575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","c","chess","chess-engine","uci"],"created_at":"2025-04-15T18:40:36.645Z","updated_at":"2025-04-15T18:40:37.215Z","avatar_url":"https://github.com/lucasart.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Demolito\n\nDemolito is a [UCI](http://www.shredderchess.com/chess-info/features/uci-universal-chess-interface.html)\nchess engine written in [C](https://en.wikipedia.org/wiki/C_(programming_language)). As such, it is\na command line program, which is not designed to be used directly, but instead through an UCI capable\nUI, such as [CuteChess](http://github.com/cutechess/cutechess.git) or [Banksia](https://banksiagui.com/),\nor [c-chess-cli](https://github.com/lucasart/c-chess-cli.git).\n\n### Versions\n\nVersion numbers are automatically generated to be the ISO date of the last commit (ie. YYYY-MM-DD).\n\n### Windows binaries\n\n#### Occasional releases\n\nHere: [releases](https://github.com/lucasart/Demolito/releases).\n\n#### Automatic compiles\n\nWindows binaries are automatically generated when patches are pushed to github, and can be found\n[here](https://ci.appveyor.com/project/lucasart/demolito/history):\n- select the latest corresponding to the `master` branch. Be sure to choose master because other\nbranches are (mostly) elo-regressive experimental garbage.\n- go to Artifacts, where you can download the (compressed) binaries.\n\nThe archive contains 3 `.exe` files, and this is how you choose:\n- AMD: use `popcnt` if it works, otherwise `no_popcnt` (very old machine).\n- Intel: use `pext` if it works, otherwise `popcnt` (old machine), and if that still fails then\n`no_popcnt` (very old machine).\n\n### Playing level\n\nBy default playing strength is at maximum. This is suitable for engine vs. engine matches, but far\nstronger than the best human players. Here are some rating lists which have tested Demolito:\n- [FGRL](http://fastgm.de/)\n- [CEGT](http://www.cegt.net/)\n- [CCRL](http://www.computerchess.org.uk/ccrl/)\n\nIf you want to play against Demolito, you are advised to use the `Level` UCI option.\n\n### UCI Options\n\n- **Contempt**: This is used to score draws by chess rules in the search. These rules are: 3-move\nrepetition, 50 move rule, stalemate, and insufficient material. A positive value will avoid draws\n(best against weaker opponents), whereas a negative value will seek draws (best against a stronger\nopponent).\n- **Hash**: Size of the main hash table, in MB. Should be a power of two (if not Demolito will\nsilently round it down to the nearest power of two).\n- **Level**: The default value is `0`, which means the level feature is off, and Demolito plays at\nfull strength. Level `1` is the weakest, and `12` is the strongest (but still weaker than switching\noff strength limitation with `Level=0`). Note that Demolito becomes non-deterministic (on purpose),\nso that it will play differently every game, even if it reaches the same position.\n- **Fake Time**: Use this in combination with `Level` feature, if you want Demolito to (pretend to)\nthink, instead of moving instantly. Does not affect playing strength of any level, but makes game\nplay more human friendly (ie. you can think on your opponent's turn, as you would against a human).\n- **Time Buffer**: In milliseconds. Provides for extra time to compensate the lag between the UI and\nthe Engine. The default value is just enough for high performance tools like cutechess-cli, but may\nnot suffice for some slow and bloated GUIs that introduce artificial lag (and even more so if\nplaying over a network).\n- **Threads**: Number of threads to use for SMP search (default 1 = single threaded search). Please\nnote that SMP search is, by design, non-deterministic. So it is not a bug that SMP search results\nare not reproducible.\n- **UCI_Chess960**: enable/disable Chess960 castling rules. Demolito accepts either Shredder-FEN\n(AHah) or X-FEN (KQkq) notations.\n\n## Compilation\n\n### What do you need ?\n\n- clang or gcc\n- make\n- git\n\n### How to compile ?\n\nIn a terminal:\n```\ngit clone https://github.com/lucasart/Demolito.git\ncd Demolito/src\nmake CC=clang pext  # for Intel Haswell+ only\nmake CC=clang       # for AMD or older Intel\n```\nYou can use gcc instead of clang, but Demolito will be a bit slower (hence weaker).\n\n### How to verify ?\n\nRun the following benchmark:\n```\n./demolito bench|tail -4\n```\nThe `seal` is a functional signature of the program. It must match exactly the one indicated in the\nlast commit message. Otherwise, Demolito was miscompiled.\n\nThe rest is obvious: nodes, time, nodes per seconds (speed benchmark).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasart%2Fdemolito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasart%2Fdemolito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasart%2Fdemolito/lists"}