From 229084c492eb59c65324c2de2fbfbe02ae553375 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Fri, 15 Apr 2022 21:43:24 +1000 Subject: [PATCH] Add game class --- 25_Chief/csharp/Chief.csproj | 4 ++++ 25_Chief/csharp/Game.cs | 16 ++++++++++++++++ 25_Chief/csharp/Program.cs | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 25_Chief/csharp/Game.cs create mode 100644 25_Chief/csharp/Program.cs diff --git a/25_Chief/csharp/Chief.csproj b/25_Chief/csharp/Chief.csproj index d3fe4757..2e7a4432 100644 --- a/25_Chief/csharp/Chief.csproj +++ b/25_Chief/csharp/Chief.csproj @@ -6,4 +6,8 @@ enable enable + + + + diff --git a/25_Chief/csharp/Game.cs b/25_Chief/csharp/Game.cs new file mode 100644 index 00000000..29f3fec6 --- /dev/null +++ b/25_Chief/csharp/Game.cs @@ -0,0 +1,16 @@ +namespace Chief; + +internal class Game +{ + private readonly IReadWrite _io; + + public Game(IReadWrite io) + { + _io = io; + } + + internal void Play() + { + + } +} \ No newline at end of file diff --git a/25_Chief/csharp/Program.cs b/25_Chief/csharp/Program.cs new file mode 100644 index 00000000..0686ce1e --- /dev/null +++ b/25_Chief/csharp/Program.cs @@ -0,0 +1,4 @@ +global using Games.Common.IO; +global using Chief; + +new Game(new ConsoleIO()).Play(); \ No newline at end of file