Esempio n. 1
0
 public void Run()
 {
     while (!IsGameFinished())
     {
         _userInteraction.DisplayGrid(_grid);
         var coordinates = _userInteraction.GetCoordinates(
             xUpperBound: _grid.GetLength(0),
             yUpperBound: _grid.GetLength(1));
         var squareToShoot = _grid[coordinates.X, coordinates.Y];
         var shotResult    = squareToShoot.Shoot();
         _userInteraction.DisplayShotResult(shotResult);
     }
 }