mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-03 00:30:36 -08:00
Add player input routines
This commit is contained in:
@@ -9,9 +9,8 @@ internal class Reign
|
||||
private readonly float _year;
|
||||
|
||||
public Reign(IReadWrite io, IRandom random)
|
||||
: this(io, new Country(random), 0)
|
||||
: this(io, new Country(io, random), 0)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Reign(IReadWrite io, Country country, float year)
|
||||
@@ -20,4 +19,15 @@ internal class Reign
|
||||
_country = country;
|
||||
_year = year;
|
||||
}
|
||||
|
||||
public void PlayYear()
|
||||
{
|
||||
_io.Write(_country.Status);
|
||||
|
||||
var playerSoldLand = _country.SellLand();
|
||||
var playerDistributedRallods = _country.DistributeRallods();
|
||||
var playerPlantedLand = _country.PlantLand();
|
||||
var playerControlledPollution = _country.ControlPollution();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user