Add game loop and end

This commit is contained in:
Andrew Cooper
2022-11-02 08:00:27 +11:00
parent d4c5fb1df7
commit ab7f2c1182
5 changed files with 25 additions and 7 deletions

View File

@@ -17,9 +17,10 @@ internal class Game
{
_io.Write(Resource.Title);
if (SetUpReign() is Reign reign)
var reign = SetUpReign();
if (reign != null)
{
reign.PlayYear();
while (reign.PlayYear());
}
_io.WriteLine();