Display the face of a dice using ASCII characters.
★☆☆When making games that only use text it is nice to add some visual appeal using what is known as “ASCII Art” – pictures made from text characters. We could show the face of a dice using this technique.
Write a program to output the number 5 face of a dice only using the ASCII characters: o, # and a space.
Remember to add a comment before a subprogram to explain its purpose.
output5 so that:ooooooooooo
o o
o # # o
o # o
o # # o
o o
ooooooooooo
// Dice face 5 program
using System;
class Submission
{
---
// -------------------------
// Subprograms
// -------------------------
// Output a dice face using ASCII text
static void output5()
{
---
Console.WriteLine("ooooooooooo");
---
Console.WriteLine("o o");
---
Console.WriteLine("o # # o");
---
Console.WriteLine("o # o");
---
Console.WriteLine("o # # o");
---
Console.WriteLine("o o");
---
Console.WriteLine("ooooooooooo");
---
}
---
// -------------------------
// Main program
// -------------------------
public static void Main(string[] args)
{
---
output5();
---
}
---
}