{"id":26978683,"url":"https://github.com/scriptedbutton/rust-chess","last_synced_at":"2025-04-03T13:39:40.179Z","repository":{"id":259916310,"uuid":"879818701","full_name":"ScriptedButton/rust-chess","owner":"ScriptedButton","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-28T16:26:43.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-28T17:51:44.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ScriptedButton.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":"2024-10-28T15:46:28.000Z","updated_at":"2024-10-28T16:26:47.000Z","dependencies_parsed_at":"2024-10-28T17:51:50.720Z","dependency_job_id":"411193f8-26be-47b5-8c40-e991c47d0890","html_url":"https://github.com/ScriptedButton/rust-chess","commit_stats":null,"previous_names":["scriptedbutton/rust-chess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Frust-chess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Frust-chess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Frust-chess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptedButton%2Frust-chess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptedButton","download_url":"https://codeload.github.com/ScriptedButton/rust-chess/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247011447,"owners_count":20868887,"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":"2025-04-03T13:39:39.519Z","updated_at":"2025-04-03T13:39:40.157Z","avatar_url":"https://github.com/ScriptedButton.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust TUI Chess\n\nA terminal-based chess game written in Rust using [Pleco](https://github.com/pleco-rs/Pleco) chess engine and [Ratatui](https://github.com/ratatui-org/ratatui) for the terminal interface.\n\n## Features\n\n- Full chess implementation with all standard rules\n- Terminal-based user interface with Unicode chess pieces\n- Cursor-based piece selection and movement\n- Move validation using Pleco chess engine\n- Simple AI opponent that makes random legal moves\n- Game state indicators (check, checkmate, stalemate)\n- Move history and status messages\n- Keyboard controls\n\n## Prerequisites\n\n- Rust and Cargo (install from [rustup.rs](https://rustup.rs/))\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/ScriptedButton/rust-chess\ncd rust-chess\n```\n\n2. Build and run:\n```bash\ncargo run\n```\n\n## Controls\n\n- Arrow keys: Move cursor\n- Enter: Select piece/Make move\n- Esc: Deselect piece\n- q: Quit game\n\n## Game Rules\n\n- White plays first\n- All standard chess rules are implemented\n- After each player move, the AI opponent will make a move\n- Invalid moves are prevented and reported in the status area\n- Game ends on checkmate or stalemate\n\n## Project Structure\n\n```\nsrc/\n├── main.rs          # Main game logic and TUI implementation\n└── lib.rs           # Library functions (if any)\n\nCargo.toml           # Project dependencies and metadata\nREADME.md           # This file\n```\n\n## Dependencies\n\n- `pleco = \"0.5.0\"` - Chess move generation and validation\n- `ratatui = \"0.24.0\"` - Terminal user interface\n- `crossterm = \"0.27.0\"` - Terminal manipulation\n- `rand = \"0.8\"` - Random move generation for AI\n- `anyhow = \"1.0\"` - Error handling\n\n## Future Improvements\n\n- [ ] Implement more sophisticated AI using minimax with alpha-beta pruning\n- [ ] Add move history display\n- [ ] Save/Load game functionality\n- [ ] Add clock/timer support\n- [ ] Network play support\n- [ ] Opening book integration\n- [ ] Position evaluation display\n- [ ] Multiple AI difficulty levels\n- [ ] PGN export functionality\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [Pleco Chess Engine](https://github.com/pleco-rs/Pleco)\n- [Ratatui](https://github.com/ratatui-org/ratatui)\n- Stockfish Chess Engine (which Pleco is derived from)\n\n## Contact\n\nIf you have any questions, feel free to reach out by:\n- Opening an issue\n- Submitting a pull request\n- Emailing at [macoryx@gmail.com]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptedbutton%2Frust-chess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptedbutton%2Frust-chess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptedbutton%2Frust-chess/lists"}