From 71257c60bf3ba6a35a466cbc412fdaff99ae4fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl?= Date: Tue, 20 Feb 2024 10:52:36 +0100 Subject: [PATCH] example: make magic numbers clear --- Source/Example/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Example/Program.cs b/Source/Example/Program.cs index 7cbb369..9556f9f 100644 --- a/Source/Example/Program.cs +++ b/Source/Example/Program.cs @@ -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); }