mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Add game intro
This commit is contained in:
20
67_One_Check/csharp/Game.cs
Normal file
20
67_One_Check/csharp/Game.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace OneCheck;
|
||||
|
||||
internal class Game
|
||||
{
|
||||
private readonly IReadWrite _io;
|
||||
private readonly Board _board;
|
||||
|
||||
public Game(IReadWrite io)
|
||||
{
|
||||
_io = io;
|
||||
_board = new Board();
|
||||
}
|
||||
|
||||
public void Play()
|
||||
{
|
||||
_io.Write(Streams.Introduction);
|
||||
|
||||
_io.WriteLine(_board);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user