Update 82_Stars with common library

This commit is contained in:
Andrew Cooper
2022-03-20 17:19:29 +11:00
parent d6ddc6bf9e
commit 4fb62ce30c
9 changed files with 147 additions and 134 deletions

View File

@@ -1,30 +1,7 @@
using System;
using Games.Common.IO;
using Games.Common.Randomness;
using Stars;
namespace Stars
{
class Program
{
static void Main(string[] args)
{
DisplayTitle();
var game = new Game(new ConsoleIO(), new RandomNumberGenerator(), maxNumber: 100, maxGuessCount: 7);
var game = new Game(maxNumber: 100, maxGuessCount: 7);
game.DisplayInstructions();
while (true)
{
game.Play();
}
}
private static void DisplayTitle()
{
Console.WriteLine(" Stars");
Console.WriteLine(" Creative Computing Morristown, New Jersey");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine();
}
}
}
game.Play(() => true);