Example #1
0
 public IEnumerable <Tile> AdjacentTiles(Coord coord)
 {
     foreach (var c in coord.AdjacentCoords(includeDiagonal:true, includeSelf:true))
     {
         if (tiles.ContainsKey(c))
         {
             yield return(tiles[c]);
         }
     }
 }