Files
basic-computer-games/58_Love/csharp/Program.cs
2022-01-17 11:12:56 +02: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);
}
}
}