Files
basic-computer-games/58_Love/csharp/Love/Program.cs
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00

32 lines
788 B
C#

using System;
using System.Reflection;
namespace Love
{
internal class Program
{
static void Main(string[] args)
{
DisplayIntro();
var message = Input.ReadLine("Your message, please");
var pattern = new LovePattern();
var source = new SourceCharacters(pattern.LineLength, message);
using var destination = Console.OpenStandardOutput();
pattern.Write(source, destination);
}
private static void DisplayIntro()
{
using var stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream("Love.Strings.Intro.txt");
using var stdout = Console.OpenStandardOutput();
stream.CopyTo(stdout);
}
}
}