{"id":20577870,"url":"https://github.com/imor/uci","last_synced_at":"2025-04-14T19:02:52.613Z","repository":{"id":9772286,"uuid":"11743041","full_name":"imor/uci","owner":"imor","description":"A thin wrapper on a uci chess engine","archived":false,"fork":false,"pushed_at":"2021-05-07T06:06:20.000Z","size":4363,"stargazers_count":34,"open_issues_count":9,"forks_count":18,"subscribers_count":8,"default_branch":"gh-pages","last_synced_at":"2025-03-28T07:22:37.974Z","etag":null,"topics":["chess","chess-engine","uci","uci-engine"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-29T15:33:16.000Z","updated_at":"2024-11-16T14:13:04.000Z","dependencies_parsed_at":"2022-07-12T15:03:47.237Z","dependency_job_id":null,"html_url":"https://github.com/imor/uci","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imor%2Fuci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imor%2Fuci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imor%2Fuci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imor%2Fuci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imor","download_url":"https://codeload.github.com/imor/uci/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537192,"owners_count":21120711,"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":["chess","chess-engine","uci","uci-engine"],"created_at":"2024-11-16T06:08:55.393Z","updated_at":"2025-04-14T19:02:52.544Z","avatar_url":"https://github.com/imor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"UCI\n===\n\nNOTE:This version is not backwards compatible with 0.2.x series of releases.\n\nUCI is a thin wrapper on a [uci\ninterface](http://en.wikipedia.org/wiki/Universal_Chess_Interface) chess engine.\n\n\n## Installation\nMake sure you have [node.js](http://nodejs.org/) installed. Then do:\n\n    $ npm install uci\n\n## Example\n```js\nvar Engine = require('uci');\nvar engine = new Engine('\u003cpath to engine executable\u003e');\nengine.runProcess().then(function () {\n    console.log('Started');\n    return engine.uciCommand();\n}).then(function (idAndOptions) {\n    console.log('Engine name - ' + idAndOptions.id.name);\n    return engine.isReadyCommand();\n}).then(function () {\n    console.log('Ready');\n    return engine.uciNewGameCommand();\n}).then(function () {\n    console.log('New game started');\n    return engine.positionCommand('startpos', 'e2e4 e7e5');\n}).then(function () {\n    console.log('Starting position set');\n\tconsole.log('Starting analysis');\n    return engine.goInfiniteCommand(function infoHandler(info) {\n        console.log(info);\n    });\n}).delay(2000).then(function () {\n    console.log('Stopping analysis');\n    return engine.stopCommand();\n}).then(function (bestmove) {\n    console.log('Bestmove: ');\n    console.log(bestmove);\n    return engine.quitCommand();\n}).then(function () {\n    console.log('Stopped');\n}).fail(function (error) {\n    console.log(error);\n    process.exit();\n}).done();\n```\n## API\n\nSee [here](http://imor.github.io/uci/docs/src/main.html) for API reference.\n\n## Contributing\nFork, pick an issue to fix from [issues](https://github.com/imor/uci/issues) or\nadd a missing feature and send a pull request.\n\n## License\nUCI is released under the MIT License. See the bundled LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimor%2Fuci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimor%2Fuci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimor%2Fuci/lists"}