{"id":21899744,"url":"https://github.com/max21910/bataille-navale","last_synced_at":"2025-03-22T05:41:34.656Z","repository":{"id":215101939,"uuid":"738125763","full_name":"max21910/Bataille-Navale","owner":"max21910","description":"A Bataille-Navale Game made in c++ for a school project","archived":false,"fork":false,"pushed_at":"2024-01-17T23:31:38.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T06:22:40.482Z","etag":null,"topics":["cpp","france","game","shoolproject"],"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/max21910.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-01-02T13:39:24.000Z","updated_at":"2024-06-20T12:06:34.000Z","dependencies_parsed_at":"2024-11-28T14:47:13.055Z","dependency_job_id":"3a242677-07e0-4516-b0bc-bae8a13fb9af","html_url":"https://github.com/max21910/Bataille-Navale","commit_stats":null,"previous_names":["max21910/bataille-navale"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max21910%2FBataille-Navale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max21910%2FBataille-Navale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max21910%2FBataille-Navale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max21910%2FBataille-Navale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max21910","download_url":"https://codeload.github.com/max21910/Bataille-Navale/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913006,"owners_count":20530769,"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","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":["cpp","france","game","shoolproject"],"created_at":"2024-11-28T14:47:07.067Z","updated_at":"2025-03-22T05:41:34.630Z","avatar_url":"https://github.com/max21910.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bataille Navale Game in C++\nThis is a console-based Bataille Navale (Battleship) game implemented in C++.\n(this is a school project)\nOverview\nThis program simulates a two-player Battleship game where players place their ships on an 8x8 grid and take turns to guess and attack each other's ships.\n\u003cimg src=\"img/1.jpg\" width=\"600\" height=\"200\"\u003e\n\u003cimg src=\"img/2.jpg\" width=\"600\" height=\"200\"\u003e\n## Gameplay\n-Players input the positions of their ships by specifying the column (A-H) and row (1-8).\n\n-Once ships are placed, players take turns to fire at the opponent's grid by inputting coordinates.\n\nThe game ends when one player successfully sinks all of the opponent's ships.\n\n## How to Play\nCompile the code using a C++ compiler.\nRun the compiled executable.\nFollow the instructions to input ship positions and take shots at the opponent's grid.\nCode Structure\nprintNavireA() and printNavireB() print the initial ship placements for Player A and Player B, respectively.\nprintshootA() and printshootB() display the shots fired by Player A and Player B.\ninput_playerA() and input_playerB() allow players to input their ship positions.\nPlace_Fire() controls the turn-based firing mechanism and determines the winner.\ncreateGameTable() initializes the game grids.\nUsage\nTo run the game:\n\n# Compile the code\n```\ng++ Bataille-Navale.cpp -o BatailleNavale\n```\n# Run the compiled code\n```\n./BatailleNavale\n```\nFollow the on-screen instructions to play the game.\n\n\ncreated with ❤️ by max21910 in 🇫🇷","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax21910%2Fbataille-navale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax21910%2Fbataille-navale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax21910%2Fbataille-navale/lists"}