mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 15:37:51 -08:00
Add game class
This commit is contained in:
@@ -6,4 +6,8 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\00_Common\dotnet\Games.Common\Games.Common.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
16
25_Chief/csharp/Game.cs
Normal file
16
25_Chief/csharp/Game.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
namespace Chief;
|
||||||
|
|
||||||
|
internal class Game
|
||||||
|
{
|
||||||
|
private readonly IReadWrite _io;
|
||||||
|
|
||||||
|
public Game(IReadWrite io)
|
||||||
|
{
|
||||||
|
_io = io;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void Play()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
4
25_Chief/csharp/Program.cs
Normal file
4
25_Chief/csharp/Program.cs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
global using Games.Common.IO;
|
||||||
|
global using Chief;
|
||||||
|
|
||||||
|
new Game(new ConsoleIO()).Play();
|
||||||
Reference in New Issue
Block a user