{"id":21964947,"url":"https://github.com/wesdoyle/wake_engine","last_synced_at":"2025-04-24T02:28:37.502Z","repository":{"id":55540602,"uuid":"318940265","full_name":"wesdoyle/wake_engine","owner":"wesdoyle","description":"A chess engine in Python using numPy (WIP). Livestreamed here: www.youtube.com/watch?v=1QotIA4_jb4","archived":false,"fork":false,"pushed_at":"2021-04-22T13:13:29.000Z","size":389,"stargazers_count":33,"open_issues_count":1,"forks_count":17,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-30T06:11:08.360Z","etag":null,"topics":["chess","chess-ai","chess-engine","numpy","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wesdoyle.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}},"created_at":"2020-12-06T03:13:18.000Z","updated_at":"2024-05-15T10:58:50.000Z","dependencies_parsed_at":"2022-08-15T02:50:38.829Z","dependency_job_id":null,"html_url":"https://github.com/wesdoyle/wake_engine","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/wesdoyle%2Fwake_engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fwake_engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fwake_engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fwake_engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesdoyle","download_url":"https://codeload.github.com/wesdoyle/wake_engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250547510,"owners_count":21448504,"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-ai","chess-engine","numpy","python"],"created_at":"2024-11-29T12:31:17.025Z","updated_at":"2025-04-24T02:28:37.483Z","avatar_url":"https://github.com/wesdoyle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wake\n\n\u003cimg src=\"./wake.png\" width=\"220px\"\u003e\u003c/img\u003e\n\n## Livesteam\n\nSignificant portions of this project have been built on livestream to document the learning process.\n\nThe livestream series is in progress on YouTube, and it starts here: https://www.youtube.com/watch?v=1QotIA4_jb4\n\n## Using the Engine\n\nThe current version of Wake is run using Python 3.x from the terminal.\n\n- Clone the directory\n\n- `pip install -r requirements.txt` (this installs the single dependency, `numPy`)\n\n- `cd wake`\n\n- `python3 game.py`\n\nYou will be presented with an output of the board in the shell:\n\n```\nWake Engine [0.1.0] running using interface mode: [uci]\nWhite to move:\n8  ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜\n7  ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎\n6  ░ ░ ░ ░ ░ ░ ░ ░\n5  ░ ░ ░ ░ ░ ░ ░ ░\n4  ░ ░ ░ ░ ░ ░ ░ ░\n3  ░ ░ ░ ░ ░ ░ ░ ░\n2  ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙\n1  ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖\n   A B C D E F G H\n```\n\nTo make a move, use UCI-style (short algebraic notation) move inputs, e.g: `e2e4`.  This will update the\nstate of the game.\n\n```\nBlack to move:\n8  ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜\n7  ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎\n6  ░ ░ ░ ░ ░ ░ ░ ░\n5  ░ ░ ░ ░ ░ ░ ░ ░\n4  ░ ░ ░ ░ ♙ ░ ░ ░\n3  ░ ░ ░ ░ ░ ░ ░ ░\n2  ♙ ♙ ♙ ♙ ░ ♙ ♙ ♙\n1  ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖\n   A B C D E F G H\n```\n\n## Other Commands\n\nThe engine code is currently under development, using the UCI protocol to define valid inputs.\n\nThe only valid inputs are currently:\n\n- Any valid move (e.g. `g1f3` for a normal move, `a7a8q` for promotion)\n- `quit` to kill the engine and terminal input processes.\n\n## Contributing\n\nThe engine code will be open for general contribution from the after v1 is complete.\n\n## Roadmap / TODO\n\n- Board representation testing\n  - Board representation is in alpha.  A full suite of unit tests still needs to be written to validate behavior.\n  - Stalemate, 50 move rule, 3-fold repetition need to be implemented\n\n- Search and Evaluation\n  - Crude material evaluation is an attribute of the `Position` class\n  - Proper evaluation metrics and implementation TBD\n\n- Rewrite\n  - The project is effectively an experiment in building a chess engine from scratch.  Ultimately, the Python code serves as a prototype for a v1 rewrite in Rust.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesdoyle%2Fwake_engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesdoyle%2Fwake_engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesdoyle%2Fwake_engine/lists"}