mirror of
https://github.com/tonytins/tomas.git
synced 2025-07-18 03:56:42 -04:00
Moved Terminal stuff to kernel project
This commit is contained in:
parent
f8a919ba3a
commit
972948948f
6 changed files with 17 additions and 41 deletions
35
src/Tomas.Kernel/EasterEggs.cs
Normal file
35
src/Tomas.Kernel/EasterEggs.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
// TOMAS is licensed under the MPL 2.0 license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
using System;
|
||||
|
||||
namespace Tomas.Kernel
|
||||
{
|
||||
internal class EasterEggs
|
||||
{
|
||||
/// <summary>
|
||||
/// Fennec art by Todd Vargo
|
||||
/// </summary>
|
||||
const string FENNEC = @" \/
|
||||
/\ /\
|
||||
//\\_//\\ ____
|
||||
\_ _/ / /
|
||||
/ * * \ /^^^]
|
||||
\_\O/_/ [ ]
|
||||
/ \_ [ /
|
||||
\ \_ / /
|
||||
[ [ / \/ _/
|
||||
_[ [ \ /_/";
|
||||
|
||||
static readonly string[] _fenPhrases = { "Screams in fennec!", "Some people call me a coffee fox." };
|
||||
|
||||
public static string FenSay
|
||||
{
|
||||
get
|
||||
{
|
||||
var rng = new Random();
|
||||
var phrases = _fenPhrases[rng.Next(0, _fenPhrases.Length)];
|
||||
return $"{phrases}{Environment.NewLine}{FENNEC}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue