https://github.com/rstropek/nbattleshipcodingcontest
Battleship Coding Sample
https://github.com/rstropek/nbattleshipcodingcontest
coderdojo game hacktoberfest
Last synced: 8 months ago
JSON representation
Battleship Coding Sample
- Host: GitHub
- URL: https://github.com/rstropek/nbattleshipcodingcontest
- Owner: rstropek
- License: mit
- Created: 2020-09-21T05:58:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T08:00:28.000Z (almost 3 years ago)
- Last Synced: 2025-04-10T18:20:28.654Z (about 1 year ago)
- Topics: coderdojo, game, hacktoberfest
- Language: C#
- Homepage:
- Size: 190 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README

# Battleship Coding Contest
## Introduction
The purpose of this project is to teach people how to program in C# and .NET. It does this in two ways:
1. 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.
2. 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.
## History
The 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.
This 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:
* 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))
* Multiple C# mini coding challenges in the [CoderDojo Linz](https://linz.coderdojo.net/) (Oct. 2020)
Did you use this project in one of your workshops or courses? Please add it to the list above by sending a pull request.
## Documentation
See [project wiki](https://github.com/rstropek/NBattleshipCodingContest/wiki).