Add C# implementation of 62 Mugwump

This commit is contained in:
Andrew Cooper
2021-10-04 23:02:53 +11:00
parent 78154bc36e
commit 8d68705f4a
10 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using System;
using System.Reflection;
namespace Mugwump
{
class Program
{
static void Main(string[] args)
{
DisplayIntro();
var random = new Random();
while (true)
{
Game.Play(random);
Console.WriteLine();
Console.WriteLine("That was fun! Let's play again.......");
Console.WriteLine("Four more mugwumps are now in hiding.");
}
}
private static void DisplayIntro()
{
using var stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream("Mugwump.Strings.Intro.txt");
using var stdout = Console.OpenStandardOutput();
stream.CopyTo(stdout);
}
}
}