{"id":20687869,"url":"https://github.com/cribbles/chess","last_synced_at":"2026-04-18T21:02:11.360Z","repository":{"id":36528982,"uuid":"40834752","full_name":"cribbles/chess","owner":"cribbles","description":"Chess and Checkers suite written in Ruby","archived":false,"fork":false,"pushed_at":"2015-10-14T12:15:39.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T23:59:04.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/cribbles.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":"2015-08-16T19:11:04.000Z","updated_at":"2015-09-29T12:24:05.000Z","dependencies_parsed_at":"2022-09-13T20:01:39.976Z","dependency_job_id":null,"html_url":"https://github.com/cribbles/chess","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cribbles/chess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fchess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fchess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fchess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fchess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cribbles","download_url":"https://codeload.github.com/cribbles/chess/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cribbles%2Fchess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31984557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: 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":[],"created_at":"2024-11-16T22:58:29.937Z","updated_at":"2026-04-18T21:02:11.320Z","avatar_url":"https://github.com/cribbles.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Chess Suite\n\n## Summary\n\nThis is a two-player Chess and Checkers game suite written in Ruby and played\nover command line. It makes use of a hand-rolled module,\n[ChessUtils](/lib/chess_utils), that encapsulates shared logic between the games\nand provides an API for developing similar ones.\n\nI wrote this with a strong focus on [Sandy Metz](http://www.poodr.com/)-style\nOOP principles.\n\n## How to Play\n\nSimply download, navigate to the root folder and run `./chess.rb` or\n`./checkers.rb`. If that doesn't work, try running `chmod +x ./chess.rb`.\n\n## Features\n\n### Chess\n\n- Move validation system allows full range of piece trajectories\n- Fully playable, with notifications for check and checkmate\n- Pieces make use of multi-level class inheritance system for DRY code\n\n### Checkers\n\n- Play against a friend, a computer AI, or watch two computer opponents face off\nagainst each other\n- Accepts notation for multi-jump sequences - e.g. `a4, c6, e8`\n- Human and computer players share the same API with duck-typing\n\n### ChessUtils\n\n- `Renderable`\n  - Provides full-color GUI for pieces and board\n- `Notatable`\n  - Translates user input from algebraic chess notation to array coordinates\n  - Uses regex and error handling to validate user input\n- `Traversable`\n  - Provides utility methods for calculating delta coordinates in a 2d\npositional grid\n\n## Checkers AI\n\nThe [checkers AI](lib/checkers/computer_player.rb) is definitely one of the\ncoolest features of this suite. Here's how it works:\n\n- Computer AI performs a depth-first search over the tree of all possible move\nsequences for each piece\n- If there are any possible jump sequences, it picks the longest one available\n(i.e. it claims as many pieces as it can)\n- If there are no possible jump moves, it picks the safest slide available (i.e.\nit plays defensively)\n- Otherwise, it makes a random move - unless it's landlocked and can't move,\nthen it forfeits\n\n## Future polishing touches (TBD)\n\n- Chess AI\n- Load and save games\n- More extensive chess moves - e.g. castling, en passant, etc.\n- Expand Checkers AI move algorithm to take kinging into consideration\n- Log and display notated user input on game completion\n\n## License\n\nRuby Chess Suite is released under the [MIT License](/LICENSE).\n\n---\nDeveloped by [Chris Sloop](http://chrissloop.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcribbles%2Fchess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcribbles%2Fchess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcribbles%2Fchess/lists"}