mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-08 19:33:31 -08:00
Add game loop and end
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user