Skip to content

Commit

Permalink
example: make magic numbers clear
Browse files Browse the repository at this point in the history
  • Loading branch information
DvdPlaat committed Feb 20, 2024
1 parent 4814d6e commit 71257c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{
var line = Console.ReadLine();
Console.WriteLine("# " + line);
// Fill the grid with zeros indicating that that slot can be used to roll on and the rest will be filled with -1 (non placeble)
var data = line!.Split(" ").Select(c => Int32.Parse(c)).Select(c => c != 0 ? 0 : -1).ToArray();
arr.Add(data);
}
Expand Down

0 comments on commit 71257c6

Please sign in to comment.