InitialiseField - AS 2017

From TRCCompSci - AQA Computer Science
Revision as of 09:27, 3 March 2017 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Code

static void InitialiseField(char[,] Field)
{
    string Response = "";
    Console.Write("Do you want to load a file with seed positions? (Y/N): ");
    Response = Console.ReadLine();
    if (Response == "Y")
    {
        ReadFile(Field);
    }
    else
    {
        CreateNewField(Field);
    }
}

Explanation