예제 #1
0
 public Grid(int rowCount, int columnCount, ISymbolService symbolService)
 {
     Rows =
         Enumerable.Range(0, rowCount)
         .Select(r => new Row
     {
         Symbols =
             Enumerable.Range(0, columnCount)
             .Select(c => symbolService.GetRandomSymbol())
             .ToList()
     })
         .ToList();
 }