mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-29 14:15:08 -08:00
Add reign initizalization
This commit is contained in:
23
53_King/csharp/Reign.cs
Normal file
23
53_King/csharp/Reign.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user