So, I was only to come to the conclusion that the only way to get the congratulations screen to show up was to make another case in the switch(level) under the ShowLevelReward() function. Otherwise, I would’ve gotten a blank screen for getting the answer right. There needed to be the same amount of cases within the ShowLevelReward() function as there were in StartGame(). The first function => affected the other one. These two functions seem to have been affecting each other and I don’t think they’d flow this way if they behaved in If-Else style. I like how this code can be easily flowcharted. Really neat!
So, the code I wrote had an issue displaying the text on te top of the screen for the level 2 solution. Maybe there’s some way to make the code work so that the text is above the picture, or wraps around it??
Code below:
void ShowLevelReward()
{
switch (level)
{
case 1:
Terminal.WriteLine(“Good jorb! Have a pat on the back”);
Terminal.WriteLine(@"
…(…/…)
… /…/
…/…/
…/´¯.|.¯\./.../ .........../... |....|.... (¯
…|…|´¯.|´¯.|…
…` ¯…¯ ´…•
…_ … _.•´"
);
break;
case 2:
Terminal.WriteLine(“you passed level 2! Have a free phone”);
Terminal.WriteLine(@"
╭━━━━━━━╮
┃ ● ══
┃███████┃
┃███████┃
┃███████┃
┃███████┃
┃███████┃
┃███████┃
┃███████┃
┃███████┃
┃ O
╰━━━━━━━╯"
);
break;
}
}