Difference between revisions of "SimulateOneYear - AS 2017"
(Created page with "==The Code== <syntaxhighlight lang=Csharp> </syntaxhighlight> ==Explanation==") |
|||
Line 2: | Line 2: | ||
<syntaxhighlight lang=Csharp> | <syntaxhighlight lang=Csharp> | ||
− | + | static void SimulateOneYear(char[,] Field, int Year) | |
+ | { | ||
+ | SimulateSpring(Field); | ||
+ | Display(Field, "spring", Year); | ||
+ | SimulateSummer(Field); | ||
+ | Display(Field, "summer", Year); | ||
+ | SimulateAutumn(Field); | ||
+ | Display(Field, "autumn", Year); | ||
+ | SimulateWinter(Field); | ||
+ | Display(Field, "winter", Year); | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Explanation== | ==Explanation== |
Latest revision as of 09:37, 3 March 2017
The Code
static void SimulateOneYear(char[,] Field, int Year)
{
SimulateSpring(Field);
Display(Field, "spring", Year);
SimulateSummer(Field);
Display(Field, "summer", Year);
SimulateAutumn(Field);
Display(Field, "autumn", Year);
SimulateWinter(Field);
Display(Field, "winter", Year);
}