Main game loop with Short Range Scan and Shield Control

This commit is contained in:
Andrew Cooper
2021-02-27 17:32:04 +11:00
parent be14ba13c1
commit 4d1a9176ec
29 changed files with 791 additions and 24 deletions

View File

@@ -23,31 +23,20 @@
// **** CONVERTED TO MICROSOFT C# 2/20/21 BY ANDREW COOPER
// ****
using System;
using static System.StringComparison;
namespace SuperStarTrek
{
class Program
internal class Program
{
static void Main(string[] args)
static void Main()
{
Console.WriteLine(Strings.Title);
var game = new Game();
Console.Write("Do you need instructions (Y/N)? ");
var response = Console.ReadLine();
Console.WriteLine();
game.DoIntroduction();
if (!response.Equals("N", InvariantCultureIgnoreCase))
do
{
Console.WriteLine(Strings.Instructions);
Console.WriteLine("Press <Enter> to continue...");
Console.ReadLine();
}
Console.WriteLine(Strings.Enterprise);
game.Play();
} while (game.Replay());
}
}
}