{"id":37107488,"url":"https://github.com/plin0009/stupid-horse","last_synced_at":"2026-01-14T12:55:06.811Z","repository":{"id":118231079,"uuid":"346849565","full_name":"plin0009/stupid-horse","owner":"plin0009","description":"Plays standard/960 chess on Lichess.","archived":false,"fork":false,"pushed_at":"2021-07-17T21:40:38.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T04:50:24.608Z","etag":null,"topics":["bot","chess"],"latest_commit_sha":null,"homepage":"https://lichess.org/@/stupid-horse","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plin0009.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-03-11T21:55:47.000Z","updated_at":"2021-08-14T21:12:44.000Z","dependencies_parsed_at":"2023-11-05T09:00:12.079Z","dependency_job_id":null,"html_url":"https://github.com/plin0009/stupid-horse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plin0009/stupid-horse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plin0009%2Fstupid-horse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plin0009%2Fstupid-horse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plin0009%2Fstupid-horse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plin0009%2Fstupid-horse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plin0009","download_url":"https://codeload.github.com/plin0009/stupid-horse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plin0009%2Fstupid-horse/sbom","scorecard":{"id":737817,"data":{"date":"2025-08-11","repo":{"name":"github.com/plin0009/stupid-horse","commit":"d8cc25326f340485fe2de7c82df78c874b5f6269"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T16:25:35.215Z","repository_id":118231079,"created_at":"2025-08-22T16:25:35.215Z","updated_at":"2025-08-22T16:25:35.215Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","chess"],"created_at":"2026-01-14T12:55:06.372Z","updated_at":"2026-01-14T12:55:06.797Z","avatar_url":"https://github.com/plin0009.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stupid-horse\nA bot that plays standard/960 chess on [Lichess](https://lichess.org), all time controls. Still a work in progress!\n\n### How it works\n- Set up a Lichess bot account\n- Make an `.env` file with bot token and ID\n- Run the bot (`go run .`), and it listens for incoming challenges and ongoing games.\n\n### To do\n- Make the bot care about time controls. Right now, the bot thinks at a certain depth no matter the time left.\n- (Possibly) create a web interface to look at bot evaluations in live-time\n\n### Known issues\n- Bot does not put importance to sooner checkmate patterns. In [this game](https://lichess.org/7uwbkBlXsVR7), it played into a draw by repetition instead of a mate in 1.\n- Bot cannot convert clearly winning positions (examples: [one](https://lichess.org/4Minxwys65gE))\n- Bot sometimes doesn't hear opponent move notifications causing it to wait for a move forever (needs to be restarted to fix)\n\n## My journey\n\n### Why was this bot created?\n- I enjoy chess\n- I have always wanted to create a chess bot\n- I saw it as a daunting challenge as a child and now I am equipped with the skill and experience to avenge myself\n- I saw this as a nice exercise with a lots of room to learn\n\n### My process\n- Browsed through Go tutorials\n- Created functions and structs to parse FEN, and set the logic involving board, pieces\n- Set up move searching to get all valid moves for a given position (state of chess board in a game)\n- Wrote tests and benchmark functions along the way to look for optimizations\n- Implemented the minimax algorithm (with α-β) to choose best move after considering all possible outcomes at a certain depth (e.g. 3 moves ahead)\n- Hooked up the Lichess API and made the bot accept challenges and play moves!\n- To be continnued...\n\n### Things I learned\n- Coding in Go! I found that I really enjoy Go due to its readability, strong typing, intuitive keywords, built-in test writing, etc...\n- Writing modular components and tests \u0026 benchmarks, making it easy to add new features and optimize parts of the project\n- Consuming an API in Go, especially handling streams in [ndjson](http://ndjson.org/) format\n- The fastest stalemate from the standard starting position, researched while creating tests for game state\n- Honestly a lot more that I'd love to chat about\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplin0009%2Fstupid-horse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplin0009%2Fstupid-horse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplin0009%2Fstupid-horse/lists"}