Exemplo n.º 1
0
 public static Track GetTrackAt(this ITrackLayout trackLayout, int column, int row)
 {
     if (trackLayout.TryGet(column, row, out Track track))
     {
         return(track);
     }
     return(null);
 }
Exemplo n.º 2
0
 public bool IsValid(int column, int row) => _trackLayout.TryGet(column, row, out _) &&
 _gameBoard.GetMovableAt(column, row) == null;
Exemplo n.º 3
0
 public bool IsValid(int column, int row) => _trackLayout.TryGet(column, row, out _);
Exemplo n.º 4
0
 public bool IsValid(int column, int row)
 => _gameBoard.GetMovableAt(column, row) is Train ||
 _trackLayout.TryGet(column, row, out _);