Add game class

This commit is contained in:
Andrew Cooper
2022-04-15 21:43:24 +10:00
parent 01492a697f
commit 229084c492
3 changed files with 24 additions and 0 deletions

View File

@@ -6,4 +6,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\00_Common\dotnet\Games.Common\Games.Common.csproj" />
</ItemGroup>
</Project>

16
25_Chief/csharp/Game.cs Normal file
View File

@@ -0,0 +1,16 @@
namespace Chief;
internal class Game
{
private readonly IReadWrite _io;
public Game(IReadWrite io)
{
_io = io;
}
internal void Play()
{
}
}

View File

@@ -0,0 +1,4 @@
global using Games.Common.IO;
global using Chief;
new Game(new ConsoleIO()).Play();