{"id":22392356,"url":"https://github.com/maheshkumar-novice/connect-four","last_synced_at":"2026-04-20T06:07:42.944Z","repository":{"id":134758706,"uuid":"436305029","full_name":"Maheshkumar-novice/Connect-Four","owner":"Maheshkumar-novice","description":"A command line game written in Ruby (Test Driven Development)","archived":false,"fork":false,"pushed_at":"2022-03-02T11:04:16.000Z","size":388,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T22:15:19.552Z","etag":null,"topics":["connect-four","rspec","ruby","tdd"],"latest_commit_sha":null,"homepage":"https://replit.com/@MaheshkumarP/Connect-Four","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/Maheshkumar-novice.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-08T15:53:16.000Z","updated_at":"2022-02-10T17:24:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"720ef588-a42c-47b8-aab7-92af3e944731","html_url":"https://github.com/Maheshkumar-novice/Connect-Four","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Maheshkumar-novice/Connect-Four","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maheshkumar-novice%2FConnect-Four","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maheshkumar-novice%2FConnect-Four/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maheshkumar-novice%2FConnect-Four/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maheshkumar-novice%2FConnect-Four/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maheshkumar-novice","download_url":"https://codeload.github.com/Maheshkumar-novice/Connect-Four/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maheshkumar-novice%2FConnect-Four/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019059,"owners_count":26086512,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["connect-four","rspec","ruby","tdd"],"created_at":"2024-12-05T04:16:15.862Z","updated_at":"2025-10-14T11:11:42.209Z","avatar_url":"https://github.com/Maheshkumar-novice.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Connect-Four](https://en.wikipedia.org/wiki/Connect_Four)\nThis project is part of the [The Odin Project](https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby-programming/lessons/hangman)'s Ruby curriculum.\n\n\u003cdetails open=\"open\"\u003e\n  \u003csummary\u003eTable Of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#description\"\u003eDescription\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#demo\"\u003eDemo\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\n    \u003c/li\u003e\n     \u003cli\u003e\n      \u003ca href=\"#play-online\"\u003ePlay Online\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#play-local\"\u003ePlay Local\u003c/a\u003e\n    \u003c/li\u003e\n     \u003cli\u003e\n      \u003ca href=\"#what-i-learned\"\u003eWhat I Learned\u003c/a\u003e\n    \u003c/li\u003e\n     \u003cli\u003e\n      \u003ca href=\"#acknowledgements\"\u003eAcknowledgements\u003c/a\u003e\n    \u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## Description\n\n\u003e  Connect Four is a two-player game connection board game, in which the players choose a color and then take turns dropping colored discs into seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs. - Wikipedia.\n\nUsing Test Driven Development style, this game is developed with Ruby. RSpec is used for TDD. TDD is in simple terms, figuring out what needs to happen, writing a failing test for it, then writing the code to make that test pass and then refactoring the code.\n\n## Demo\n\n![Example](./assets/example.gif)\n\u003c/br\u003e\n  \n## Built With\n* Ruby\n* RSpec\n\n## Play Online\n\n[Replit - Connect Four](https://replit.com/@MaheshkumarP/Connect-Four)\n\n## Play Local\n\n### Prerequisites\n\n- Ruby (\u003e= 2.5) - [Install](https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby-programming/lessons/installing-ruby-ruby-programming)\n- RSpec - [Install](https://www.theodinproject.com/paths/full-stack-ruby-on-rails/courses/ruby-programming/lessons/introduction-to-rspec)\n\n### Installation\n\n```sh\ngit clone git@github.com:Maheshkumar-novice/connect-four.git\n```\n\n```sh\ncd connect-four\n```\n\n```sh\nruby lib/main.rb\n```\nTo run the tests,\n```sh\nrspec\n```\n\n## What I Learned\n\n- How to write tests with RSpec \n- How to do TDD with RSpec and Ruby\n- Different ways to test methods based on the inputs and outputs\n- Mocks and Stubs\n- Refactoring the Code\n- Splitting the problem into small steps\n- Planning the solution\n- Writing methods that do one thing\n- Played with color texts in Terminal\n\n## Acknowledgements\n\n* [The Odin Project](https://theodinproject.com)\n* [Replit](https://replit.com)\n* [TOIlet](http://caca.zoy.org/wiki/toilet)\n\n[Move To Top](#connect-four)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaheshkumar-novice%2Fconnect-four","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaheshkumar-novice%2Fconnect-four","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaheshkumar-novice%2Fconnect-four/lists"}