mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-04 00:57:13 -08:00
18 lines
379 B
C#
18 lines
379 B
C#
namespace Salvo.Targetting;
|
|
|
|
internal abstract class ShotSelector
|
|
{
|
|
internal ShotSelector(Grid source, Grid target)
|
|
{
|
|
Source = source;
|
|
Target = target;
|
|
}
|
|
|
|
protected Grid Source { get; }
|
|
protected Grid Target { get; }
|
|
|
|
internal int NumberOfShots => Source.Ships.Sum(s => s.Shots);
|
|
|
|
internal abstract IEnumerable<Position> GetShots();
|
|
}
|