{"id":15584211,"url":"https://github.com/eduardo06sp/tdd-connect-four","last_synced_at":"2026-04-27T12:02:25.995Z","repository":{"id":107479155,"uuid":"388682886","full_name":"Eduardo06sp/tdd-connect-four","owner":"Eduardo06sp","description":"A test-driven approach to Connect Four using RSpec.","archived":false,"fork":false,"pushed_at":"2021-08-01T23:34:42.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T08:45:10.433Z","etag":null,"topics":["oop","rspec","ruby","test-driven-development"],"latest_commit_sha":null,"homepage":"https://replit.com/@Eduardo06sp/Connect-Four?v=1","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/Eduardo06sp.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":"2021-07-23T05:01:21.000Z","updated_at":"2022-07-24T19:54:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"47981a57-7daa-4b83-bd23-80e8edec0b60","html_url":"https://github.com/Eduardo06sp/tdd-connect-four","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Eduardo06sp/tdd-connect-four","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eduardo06sp%2Ftdd-connect-four","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eduardo06sp%2Ftdd-connect-four/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eduardo06sp%2Ftdd-connect-four/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eduardo06sp%2Ftdd-connect-four/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eduardo06sp","download_url":"https://codeload.github.com/Eduardo06sp/tdd-connect-four/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eduardo06sp%2Ftdd-connect-four/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["oop","rspec","ruby","test-driven-development"],"created_at":"2024-10-02T20:40:24.773Z","updated_at":"2026-04-27T12:02:25.978Z","avatar_url":"https://github.com/Eduardo06sp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect Four\n\nThis project was designed with RSpec testing prior to implementing functionality. Method stubs and mocks were used to isolate functionality in methods. Constant refactoring was necessary due to the nature of test-driven development.\n\n## How To Play\n\n[Here is a simple guide from wikiHow](https://www.wikihow.com/Play-Connect-4) explaining the game of Connect Four. In essence, two players alternate dropping gamepieces into columns. Whoever gets four across, vertically or diagonally first, wins.\n\nIn this project, run the main file with the command: `ruby lib/main.rb`.\nYou will be prompted to enter names for each player, you may simply press enter with no value to use generic names.\nThen you will be asked to choose a gamepiece. Gamepieces are represented by stars.\n\nThis game is designed to be played by two humans.\nYou can type in numbers 1-7 to \"drop\" your gamepiece in a given column. Repeat until game is over.\n\n## Reflection\n\nIn this particular project, I learned to:\n\n* Design a project with a **test-driven development** approach\n* Learn how to perform **unit testing** with RSpec\n* Use **method stubs** to help simplify testing\n* Use **mocks** to return specific values from methods\n* Write descriptive tests to understand errors more easily\n* Use **doubles** to help isolate tests\n* Utilize the **Arrange, Act \u0026 Assert** testing pattern\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardo06sp%2Ftdd-connect-four","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardo06sp%2Ftdd-connect-four","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardo06sp%2Ftdd-connect-four/lists"}