Add main program classes

This commit is contained in:
Andrew Cooper
2022-08-19 19:15:52 +10:00
parent 39733109c7
commit 9118236a6f
2 changed files with 25 additions and 0 deletions

18
41_Guess/csharp/Game.cs Normal file
View File

@@ -0,0 +1,18 @@
namespace Guess;
internal class Game
{
private readonly IReadWrite _io;
private readonly IRandom _random;
public Game(IReadWrite io, IRandom random)
{
_io = io;
_random = random;
}
public void Play()
{
}
}

View File

@@ -0,0 +1,7 @@
global using Games.Common.IO;
global using Games.Common.Randomness;
global using static Guess.Resources.Resource;
using Guess;
new Game(new ConsoleIO(), new RandomNumberGenerator()).Play();