mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-12 15:50:20 -08:00
Add main program classes
This commit is contained in:
18
41_Guess/csharp/Game.cs
Normal file
18
41_Guess/csharp/Game.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
7
41_Guess/csharp/Program.cs
Normal file
7
41_Guess/csharp/Program.cs
Normal 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();
|
||||
Reference in New Issue
Block a user