diff --git a/30_Cube/csharp/Game.cs b/30_Cube/csharp/Game.cs new file mode 100644 index 00000000..f02fa07e --- /dev/null +++ b/30_Cube/csharp/Game.cs @@ -0,0 +1,18 @@ +namespace Cube; + +internal class Game +{ + private readonly IReadWrite _io; + private readonly IRandom _random; + + public Game(IReadWrite io, IRandom random) + { + _io = io; + _random = random; + } + + public void Play() + { + _io.Write(Streams.Introduction); + } +} \ No newline at end of file diff --git a/30_Cube/csharp/Program.cs b/30_Cube/csharp/Program.cs new file mode 100644 index 00000000..f22208ac --- /dev/null +++ b/30_Cube/csharp/Program.cs @@ -0,0 +1,8 @@ +global using Games.Common.IO; +global using Games.Common.Randomness; + +global using static Cube.Resources.Resource; + +using Cube; + +new Game(new ConsoleIO(), new RandomNumberGenerator()).Play();