mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
24 lines
434 B
C#
24 lines
434 B
C#
namespace King;
|
|
|
|
internal class Reign
|
|
{
|
|
public const int MaxTerm = 8;
|
|
|
|
private readonly IReadWrite _io;
|
|
private readonly Country _country;
|
|
private readonly float _year;
|
|
|
|
public Reign(IReadWrite io, IRandom random)
|
|
: this(io, new Country(random), 0)
|
|
{
|
|
|
|
}
|
|
|
|
public Reign(IReadWrite io, Country country, float year)
|
|
{
|
|
_io = io;
|
|
_country = country;
|
|
_year = year;
|
|
}
|
|
}
|