Example #1
0
        public void Recalculate()
        {
            this.Clear();

            IEnumerable <BattleShip> sunkShips = this.TheSea.GetAllSunkShips();

            IEnumerable <ICoordinate> coordinates = Sea.GetAllCoordinatesFrom(sunkShips);

            foreach (ICoordinate coordinate in coordinates)
            {
                this.AddDisplayValue(coordinate.GetX(), coordinate.GetY(), SunkShipValue);
            }
        }