{"id":15551057,"url":"https://github.com/naomiyocum/battleship","last_synced_at":"2026-04-27T23:36:15.478Z","repository":{"id":58257992,"uuid":"530413574","full_name":"naomiyocum/battleship","owner":"naomiyocum","description":"A CLI Battleship game - you vs the computer.","archived":false,"fork":false,"pushed_at":"2023-03-13T21:25:40.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T01:45:00.976Z","etag":null,"topics":["rspec","ruby"],"latest_commit_sha":null,"homepage":"","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/naomiyocum.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":"2022-08-29T22:25:08.000Z","updated_at":"2023-03-19T21:03:29.000Z","dependencies_parsed_at":"2024-12-08T21:41:03.773Z","dependency_job_id":"395d13eb-4a7b-4e43-b342-2a0539569541","html_url":"https://github.com/naomiyocum/battleship","commit_stats":{"total_commits":40,"total_committers":3,"mean_commits":"13.333333333333334","dds":"0.42500000000000004","last_synced_commit":"769c72b2c48a6a6b42eb9b3b7435616a61760f1d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naomiyocum/battleship","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naomiyocum%2Fbattleship","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naomiyocum%2Fbattleship/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naomiyocum%2Fbattleship/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naomiyocum%2Fbattleship/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naomiyocum","download_url":"https://codeload.github.com/naomiyocum/battleship/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naomiyocum%2Fbattleship/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32360114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["rspec","ruby"],"created_at":"2024-10-02T14:02:24.909Z","updated_at":"2026-04-27T23:36:15.464Z","avatar_url":"https://github.com/naomiyocum.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e Battleship 🚢 \u003c/h1\u003e\n\n![GitHub Contributors](https://img.shields.io/github/contributors/naomiyocum/battleship)\n![GitHub language count](https://img.shields.io/github/languages/count/naomiyocum/battleship)\n![GitHub top language](https://img.shields.io/github/languages/top/naomiyocum/battleship?color=yellow)\n\n\u003cimg src=\"https://user-images.githubusercontent.com/102825498/202269433-ac4fea0b-02c5-48cf-b766-37bc99181d40.jpg\" alt=\"drawing\" width=\"650\"/\u003e\n\n## Table of contents\n* [General Info](#general-info)\n* [Learning Goals](#learning-goals)\n* [Technologies](#technologies)\n* [Usage](#usage)\n\n## General Info\nBattleship was a paired project assigned to us during week 2 of Mod 1 of 4 in Turing's School of Software \u0026 Design.\nOur challenge was to use Ruby to build a command line implementation of the classic game [Battleship](https://en.wikipedia.org/wiki/Battleship_(game)).\u003cbr\u003e\u003cbr\u003e\nBattleship is a classic board game where players place one or more ships on a grid board, and then take turns trying to “sink” the other player’s ships by guessing their coordinates.\nThe game ends when one player’s ships are all hit and “sunk”.\n\n## Learning Goals\n* Utilize Test-Driven Development (TDD)\n* Practice algorithmic thinking\n* Create an Object-Oriented solution to a problem without being given full specifications\n* Work in a pair, using Pull Requests to collaborate\n\n## Technologies\n* Ruby 2.7\n* RSpec\n* Pry\n* SimpleCov\n* Git\n* Atom\n\n## Usage :ship:\nYou need to clone the project onto your local machine and run the file.\n```bash\ngit clone git@github.com:naomiyocum/battleship.git\ncd battleship\nruby battleship_runner.rb\n```\nAfter running these commands, you should see a prompt welcoming you to the game!\n\nAfter entering `p`, you will be prompted to place your ships, similar to the image below.\u003cbr\u003e\u003cbr\u003e\n\u003cimg width=\"558\" alt=\"Screen Shot 2022-11-16 at 12 11 44 PM\" src=\"https://user-images.githubusercontent.com/102825498/202271656-452d71b6-b883-4c0b-8d71-60f4c2cf4b08.png\"\u003e\u003cbr\u003e\u003cbr\u003e\nAfter ship placement, you and the computer will take turns attempting to hit each other's battleships. May the odds be in your favor.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaomiyocum%2Fbattleship","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaomiyocum%2Fbattleship","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaomiyocum%2Fbattleship/lists"}