{"id":23721653,"url":"https://github.com/realcyguy/chessengines","last_synced_at":"2026-02-13T14:30:18.111Z","repository":{"id":117693560,"uuid":"507449935","full_name":"RealCyGuy/chessengines","owner":"RealCyGuy","description":"Some bad UCI chess engines in python.","archived":false,"fork":false,"pushed_at":"2022-06-26T01:18:47.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T22:32:42.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/RealCyGuy.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":"2022-06-26T01:14:27.000Z","updated_at":"2023-10-01T23:35:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ab49d09-18cd-49a1-84c0-e18829b7bc72","html_url":"https://github.com/RealCyGuy/chessengines","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/RealCyGuy%2Fchessengines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealCyGuy%2Fchessengines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealCyGuy%2Fchessengines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealCyGuy%2Fchessengines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealCyGuy","download_url":"https://codeload.github.com/RealCyGuy/chessengines/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239816478,"owners_count":19701753,"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":[],"created_at":"2024-12-30T22:29:18.718Z","updated_at":"2026-02-13T14:30:18.046Z","avatar_url":"https://github.com/RealCyGuy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chessengines\n\nSome bad UCI chess engines in python.\n\nInspired from [Elo World](http://tom7.org/chess/weak.pdf/) and the [YouTube video](https://youtu.be/DpXy041BIlA).\n\n## Engine list\n\nUnless otherwise stated, ties are broken randomly.\nThis is generated by `scripts/showengines.py`!\n\n[`random`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L18-L22): Plays random moves.  \n[`randomcheck`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L23-L31): Plays random moves, prioritizing checks.  \n[`randomcapture`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L32-L40): Plays random moves, prioritizing captures.  \n[`samepiece`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L41-L52): Tries to move the same piece from the last move, playing a random move.  \n[`copy`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L53-L65): Tries to copy the opponents move.  \n[`minimizeopponentmoves`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L66-L81): Play the move that minimizes opponents legal moves.  \n[`maximizeopponentmoves`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L82-L97): Play the move that maximizes opponents legal moves.  \n[`minimizeownmoves`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L98-L114): Play the move that minimize its own legal moves if it was its turn again.  \n[`maximizeownmoves`](https://github.com/RealCyGuy/chessengines/blob/main/engines.py#L115-L131): Play the move that maximizes its own legal moves if it was its turn again.\n\n## Running\n\nI use poetry as a package manager, but you just need the [`chess`](https://github.com/niklasf/python-chess) package.\n\n`engine.py` is a [Universal Chess Interface](https://en.wikipedia.org/wiki/Universal_Chess_Interface) that can be used with chess GUIs.\n\nYou can choose an engine from the list above with the parameter `--engine \u003cengine\u003e` or use UCI's `setoption name Engine value \u003cengine\u003e`.\n\n## License\n\n[MIT](https://RealCyGuy/chessengines/blob/main/LICENSE)!!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealcyguy%2Fchessengines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealcyguy%2Fchessengines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealcyguy%2Fchessengines/lists"}