{"id":19758916,"url":"https://github.com/jcampbell57/ruby_connect_four","last_synced_at":"2026-04-17T19:32:28.589Z","repository":{"id":251334101,"uuid":"837074567","full_name":"jcampbell57/ruby_connect_four","owner":"jcampbell57","description":"A command line Connect Four game where two players can play against each other. The purpose of this project was to practice Test Driven Development (TDD) with RSpec.","archived":false,"fork":false,"pushed_at":"2024-08-02T08:19:09.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T09:32:30.773Z","etag":null,"topics":["object-oriented-programming","oop","rspec","ruby","tdd","test-driven-development"],"latest_commit_sha":null,"homepage":"https://replit.com/@jcampbell57/Connect-Four#main.rb","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/jcampbell57.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-08-02T06:50:34.000Z","updated_at":"2024-08-02T23:32:54.000Z","dependencies_parsed_at":"2024-08-02T09:58:57.528Z","dependency_job_id":null,"html_url":"https://github.com/jcampbell57/ruby_connect_four","commit_stats":null,"previous_names":["jcampbell57/ruby_connect_four"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcampbell57/ruby_connect_four","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcampbell57%2Fruby_connect_four","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcampbell57%2Fruby_connect_four/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcampbell57%2Fruby_connect_four/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcampbell57%2Fruby_connect_four/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcampbell57","download_url":"https://codeload.github.com/jcampbell57/ruby_connect_four/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcampbell57%2Fruby_connect_four/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31943358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"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":["object-oriented-programming","oop","rspec","ruby","tdd","test-driven-development"],"created_at":"2024-11-12T03:26:34.260Z","updated_at":"2026-04-17T19:32:28.571Z","avatar_url":"https://github.com/jcampbell57.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect Four\n\n## Project info\n\nA command line Connect Four game where two players can play against each other. The purpose of this project was to practice Test Driven Development (TDD) with RSpec.\n\nProject description can be found [here](https://www.theodinproject.com/lessons/ruby-connect-four).\n\n\n## Live demo\n\nLive demo available [on Replit (account required)](https://replit.com/@jcampbell57/Connect-Four#main.rb)\n\n\n## Table of Contents\n\n* [Features](#features)\n* [Technologies utilized](#technologies-utilized)\n* [Learning outcomes](#learning-outcomes)\n* [Project screenshot](#project-screenshot)\n* [Behind the Scenes](#behind-the-scenes)\n* [Installation](#installation)\n\n\n## Features\n\n- Play multiplayer or singleplayer against the computer.\n- Interactive gameplay allowing two players to take turns.\n- Board display to visualize the game state.\n- Validation of player moves to ensure they are within the valid range and the chosen column is not full.\n- Detection of winning combinations to determine the winner.\n\n\n## Technologies utilized\n\n- Ruby\n- RSpec\n\n\n## Learning outcomes\n\nThis project helped to reinforce the following skills:\n\n- Test Driven Development (TDD)\n- Object Oriented Programming (OOP)\n- basic Ruby knowledge\n\n\n## Project screenshot\n\n![Connect Four](assets/connect-four-600w.png)\n\n\n## Behind the scenes\n\n### Project notes\n\n- Run `rspec` to run tests\n- I think I might have written too many tests. I could see the benefit to having minimal tests that focus on the most important things. \n\n### Resources\n\n- For board design, I was inspired by [this example](https://replit.com/@thantko20/Connect-Four#main.rb).\n\n\n## Installation\n\n- Clone this repository to your desktop.\n- Navigate to the top level of the directory by running `cd ruby_connect_four`.\n- Run `ruby main.rb` in your terminal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcampbell57%2Fruby_connect_four","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcampbell57%2Fruby_connect_four","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcampbell57%2Fruby_connect_four/lists"}