2.3 Write Pretty Messages

The GameUtilities include a function to print a given message inside a box. It’s great for making it stand out from the rest of the text.

🖨️ Console

+---------+
+-- Box --+
+---------+

Let’s use it to show the welcome message.


What to Do

🎯 Expected Outcome

🖨️ Console

+--------------------------------+
+-- Welcome to Odds and Evens! --+
+--------------------------------+

🙈 Solution
Tried, you must, before reveal the solution you may. - Yoda

✏️ Program.cs - Changes

--  Console.WriteLine("Welcome to Odds and Evens!");
++  GamePrint.Box("Welcome to Odds and Evens!");    

🗒️ Program.cs - Final

GamePrint.Box("Welcome to Odds and Evens!");