{"id":19380763,"url":"https://github.com/helleb0re/seabattle","last_synced_at":"2026-05-29T16:31:38.481Z","repository":{"id":186749328,"uuid":"675640137","full_name":"helleb0re/seabattle","owner":"helleb0re","description":"The Seabattle game was written in C++ with Boost.Asio (TCP protocol)","archived":false,"fork":false,"pushed_at":"2023-08-22T20:36:32.000Z","size":5380,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T16:52:47.816Z","etag":null,"topics":["boost-asio","cpp","seabattle","seabattle-game","tcp","tcp-client-server"],"latest_commit_sha":null,"homepage":"","language":"C++","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/helleb0re.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-08-07T11:40:31.000Z","updated_at":"2023-08-07T13:56:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"8be58fe4-4f21-449a-9f82-7adb236c305f","html_url":"https://github.com/helleb0re/seabattle","commit_stats":null,"previous_names":["helleb0re/seabattle-tcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/helleb0re/seabattle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helleb0re%2Fseabattle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helleb0re%2Fseabattle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helleb0re%2Fseabattle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helleb0re%2Fseabattle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helleb0re","download_url":"https://codeload.github.com/helleb0re/seabattle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helleb0re%2Fseabattle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["boost-asio","cpp","seabattle","seabattle-game","tcp","tcp-client-server"],"created_at":"2024-11-10T09:14:44.479Z","updated_at":"2026-05-29T16:31:38.472Z","avatar_url":"https://github.com/helleb0re.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Морской бой**\n\nКонсольная игра «Морской бой» написанная на языке C++ с использованием Boost.Asio (TCP server/client) и рассчитанная на двоих игроков.\n\n## **Правила игры**\nКаждый игрок на поле 8х8 располагает 10 кораблей:\n* 1 четырёхпалубный (занимающий 4 клетки),\n* 2 трёхпалубных,\n* 3 двухпалубных,\n* 4 однопалубных.\n\nВ данной программе расположение кораблей определяется случайным образом. Для этого необходимо указать [сид](https://en.wikipedia.org/wiki/Random_seed) как параметр командной строки при запуске программы.\n\nИгроки делают выстрелы, не видя расположение кораблей соперника. При промахе ход передаётся другому игроку. При попадании даётся право ещё одного выстрела. Соперник сообщает результат выстрела — «мимо», «попал», «убил». Последний статус означает, что поражены все клетки, занимаемые кораблём.\n\n## **Использование**\nПараметры запуска для сервера:\n```\nseabattle random_seed port\n```\nПараметры запуска для клиента:\n```\nseabattle random_seed ip_address port\n```\n\n## **Демонстрация**\n![demonstration](images/demonstration.gif)\n\n## **Зависимости**\n1. [С++20](https://en.cppreference.com/w/cpp/20)\n2. [Boost](https://www.boost.org/users/history/version_1_78_0.html) 1.78+ version requires\n3. [GCC](https://gcc.gnu.org/) 11+ version requires\n4. [CMake](https://cmake.org) 3.11 version requires\n5. [Conan](https://conan.io/) 1.* version requires\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelleb0re%2Fseabattle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelleb0re%2Fseabattle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelleb0re%2Fseabattle/lists"}