Skip to content
Breakpoint logobreakpoınt

.NET Koans

Fix C# koans one file at a time until each one passes

Your first assignment is to make Assert.True(false) pass. The opening file, AboutAsserts, then has you compare 1 + 1 with 3 and replace a placeholder, which sets the rhythm for everything after it: read a small failing xUnit test, work out what C# actually does, and edit until the runner moves on.

Play on github.com

Free · No login · Terminal · Beginner

Screenshot of .NET Koans

About .NET Koans

Thirty topic files follow in a fixed sequence. Booleans, strings, floats, decimals, null and constants come first, then arrays, enumerations, dictionaries, classes, inheritance, methods and control flow. Exceptions, generic containers, delegates and lambdas sit in the middle, and the back half reaches files and directories, LINQ, bitwise operators, destructuring, pattern matching, tuples, globalization and IDisposable. The last file, on threads, borrows its definitions from C# in a Nutshell.

This repository grew out of Cory Foy's earlier DotNetKoans, which also had VB.NET, and the whole idea traces back to Jim Weirich's Ruby Koans. Unlike Coding Learn or GrindFest, there is no game wrapper: the tests are the only feedback, and they run on your own machine.

Questions about .NET Koans

What does the FILL_ME_IN marker mean in a koan?

It means swapping in a value isn't enough, and you have to write your own code for that koan to work.

In what order do the koans run, and what happens when one fails?

They follow the order set in PathToEnlightenment.cs, and the run halts at the first broken koan until you fix it.

Made this game? Claim it →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help