ä¸è¨è¡¨ã®ã¨ããå®è£ ããã¨ãããNextGenerationã¡ã½ããå é¨ã§ããããããªæãã«ãªãã¾ããã ãããLINQã£ã½ãã public static World NextGeneration(this World world) { var lifes = world.SelectMany(life => from x in Enumerable.Range(-1, 3) from y in Enumerable.Range(-1, 3) select new { X = life.X + x, Y = life.Y + y, Score = x == 0 && y == 0 ? 0.5 : 1 }) .GroupBy(s => new { s.X, s.Y }) .Select(g => new { X = g.Key.X, Y = g.Key.Y, Score = g.Sum(a
{{#tags}}- {{label}}
{{/tags}}