{"id":24127056,"url":"https://github.com/westdragoniroh/ruby-chess","last_synced_at":"2026-05-17T11:31:20.521Z","repository":{"id":171145006,"uuid":"628944149","full_name":"WestDragonIroh/RUBY-CHESS","owner":"WestDragonIroh","description":"Command line chess game written in Ruby and tested with RSpec","archived":false,"fork":false,"pushed_at":"2023-06-03T11:19:50.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T15:45:56.588Z","etag":null,"topics":["chess","game","rspec","ruby","ymal"],"latest_commit_sha":null,"homepage":"https://replit.com/@AkshatJaiswal/RUBY-CHESS","language":"Ruby","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/WestDragonIroh.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":"2023-04-17T09:54:12.000Z","updated_at":"2023-10-27T09:39:28.000Z","dependencies_parsed_at":"2023-12-29T16:00:12.248Z","dependency_job_id":null,"html_url":"https://github.com/WestDragonIroh/RUBY-CHESS","commit_stats":null,"previous_names":["westdragoniroh/ruby-chess"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WestDragonIroh/RUBY-CHESS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestDragonIroh%2FRUBY-CHESS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestDragonIroh%2FRUBY-CHESS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestDragonIroh%2FRUBY-CHESS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestDragonIroh%2FRUBY-CHESS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WestDragonIroh","download_url":"https://codeload.github.com/WestDragonIroh/RUBY-CHESS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestDragonIroh%2FRUBY-CHESS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33136663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","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":["chess","game","rspec","ruby","ymal"],"created_at":"2025-01-11T17:37:49.536Z","updated_at":"2026-05-17T11:31:20.498Z","avatar_url":"https://github.com/WestDragonIroh.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Chess\n\nThis project is from Ruby curriculum at\n[The Odin Project](https://www.theodinproject.com/lessons/ruby-connect-four).\n\n## Description\n\nWelcome to Ruby Chess! This project is a command-line implementation of the\nclassic game of chess, written in Ruby. It offers a simple yet engaging gameplay\nexperience where you can play against a computer opponent or against another\nhuman player. I wanted to create UI similar to\n[chess.com](https://www.chess.com/) so I split each turn in 2 parts. You can\nquit or save game at any point.\n\n## Project Requirements\n\n### Objectives\n\n- 2-player game with legal moves.\n- Save and Load game.\n- Testing of important methods.\n- Computer player\n\n### Rules implemented\n\n- King cannot move into or ignore check\n- Castling is only legal if:\n  - King is not in check\n  - Neither piece has moved\n  - King will not move into check along the path to its destination square\n- En passant is only legal immediately following opponent's two-square pawn move\n- Checkmate if player to move has no legal moves and their King is in check\n- Stalemate if player to move has no legal moves and their King is not in check\n- Resignation if player decides to quit the game\n- Threefold repetition if position has occured three times, including the\n  following considerations:\n  - Same player to move\n  - Same castling rights\n  - Same en passant rights\n- Draw if during the last 50 moves no capture or pawn move has occurred\n\n## How to play\n\n### Play Online\n\nIf you want to play this game without installing it on your computer, you can\nplay it [online](https://replit.com/@AkshatJaiswal/RUBY-CHESS). Just click the\n`run` button at the top of the page. It will take a few seconds to load the\ndependencies and then the game menu will appear.\n\n### Play offline\n\n#### Prerequisites\n\n- ruby \u003e= 3.0\n- vs code or windows terminal have font set that supports chess symbols(like\n  DejaVu Sans Mono)\n\n#### Installation\n\n- Clone this repo\n  ([steps](https://support.atlassian.com/bitbucket-cloud/docs/clone-a-git-repository/))\n- Navigate into this project's directory `cd ruby_chess`\n\n#### Play\n\n- Run `ruby lib/main.rb` , to start game.\n- Select mode of playing from 1-player , 2-player or one of the game saved\n  before.\n- Each turn have two steps.\n- First to select coordinates of piece and Second to select coordinatesof legal\n  move or capture.\n\n## Technologies used\n\n\u003cp align=\"left\"\u003e\n\n\u003ca href=\"https://www.ruby-lang.org/en/\" target=\"_blank\" rel=\"noreferrer\"\u003e\n\u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/ruby/ruby-original.svg\" alt=\"ruby\" width=\"40\" height=\"40\"/\u003e\n\u003c/a\u003e \u003ca href=\"https://rspec.info/\" target=\"_blank\" rel=\"noreferrer\"\u003e\n\u003cimg src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/rspec/rspec-original.svg\" alt=\"rspec\" width=\"40\" height=\"40\"/\u003e\n\u003c/a\u003e \u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestdragoniroh%2Fruby-chess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestdragoniroh%2Fruby-chess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestdragoniroh%2Fruby-chess/lists"}