{"id":18562249,"url":"https://github.com/rstropek/nbattleshipcodingcontest","last_synced_at":"2025-10-09T20:05:26.465Z","repository":{"id":77987962,"uuid":"297242632","full_name":"rstropek/NBattleshipCodingContest","owner":"rstropek","description":"Battleship Coding Sample","archived":false,"fork":false,"pushed_at":"2023-07-28T08:00:28.000Z","size":195,"stargazers_count":4,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T18:20:28.654Z","etag":null,"topics":["coderdojo","game","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstropek.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-21T05:58:27.000Z","updated_at":"2024-04-24T03:02:48.000Z","dependencies_parsed_at":"2025-04-10T03:31:45.682Z","dependency_job_id":"d48837e2-54ed-421c-9d0f-a6340bf41158","html_url":"https://github.com/rstropek/NBattleshipCodingContest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rstropek/NBattleshipCodingContest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstropek%2FNBattleshipCodingContest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstropek%2FNBattleshipCodingContest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstropek%2FNBattleshipCodingContest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstropek%2FNBattleshipCodingContest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstropek","download_url":"https://codeload.github.com/rstropek/NBattleshipCodingContest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstropek%2FNBattleshipCodingContest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002011,"owners_count":26083258,"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-09T02:00:07.460Z","response_time":59,"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":["coderdojo","game","hacktoberfest"],"created_at":"2024-11-06T22:09:09.625Z","updated_at":"2025-10-09T20:05:26.460Z","avatar_url":"https://github.com/rstropek.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build](https://github.com/rstropek/NBattleshipCodingContest/workflows/.NET%20Core/badge.svg)\n\n# Battleship Coding Contest\n\n## Introduction\n\nThe purpose of this project is to teach people how to program in C# and .NET. It does this in two ways:\n\n1. Beginners can learn the basics of C# by programming computer players for the classical [*Battleship* game](https://en.wikipedia.org/wiki/Battleship_(game)). In a class, each student can write her own player and afterwards they can check whose player is the best.\n\n2. Advanced programmers can take a look at the implementation of the underlying runtime which is also written in C# and .NET. Trainers can use the sample to demonstrate various C# and .NET features working in a larger, non-trivial code base.\n\n## History\n\nThe history of this projects goes back many years. At that time, a group of developers at the company *cubido* wanted to demonstrate the capabilities of *ASP.NET* and *Silverlight* to customers. I (Rainer Stropek) was one of them. We implemented a coding challenge that we called *C# Pirates*. It allowed people to write and upload computer players for *Battleship*. In a rich GUI, players could play against each other and a leaderboard was continuously filled. The overall winners were awarded with gifts.\n\nThis project is a complete rewrite and works differently from the original *C# Pirates*. However, the basic idea of allowing people to write computer players for *Battleship* in C# has remained the same. Here is a list of workshops and courses in which it was used:\n\n* The first version of this project was created for a workshop at the German *BASTA* conference in 2020 ([presentation](https://slides.com/rainerstropek/battleship-workshop/fullscreen), [YouTube recording of workshop (German)](https://www.youtube.com/playlist?list=PLhGL9p3BWHwvEzTmbe5cUwR4oqQr9dl-8))\n* Multiple C# mini coding challenges in the [CoderDojo Linz](https://linz.coderdojo.net/) (Oct. 2020)\n\nDid you use this project in one of your workshops or courses? Please add it to the list above by sending a pull request.\n\n## Documentation\n\nSee [project wiki](https://github.com/rstropek/NBattleshipCodingContest/wiki).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstropek%2Fnbattleshipcodingcontest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstropek%2Fnbattleshipcodingcontest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstropek%2Fnbattleshipcodingcontest/lists"}