Advertisement
Atanasov_88

Untitled

Oct 1st, 2015
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.19 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Drawing_Picture
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.         int[] squarePosition = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  14.  
  15.         Console.WriteLine("\"TIC TAC TOE GAME\"".PadLeft(35));
  16.         Console.WriteLine("____________________".PadLeft(35));
  17.         Console.WriteLine("|     |     |      |".PadLeft(35));
  18.         Console.WriteLine("|  {0}  |  {1}  |  {2}   |".PadLeft(41), squarePosition[1], squarePosition[2], squarePosition[3]);
  19.         Console.WriteLine("|_____|_____|______|".PadLeft(35));
  20.         Console.WriteLine("|     |     |      |".PadLeft(35));
  21.         Console.WriteLine("|  {0}  |  {1}  |  {2}   |".PadLeft(41), squarePosition[4], squarePosition[5], squarePosition[6]);
  22.         Console.WriteLine("|_____|_____|______|".PadLeft(35));
  23.         Console.WriteLine("|     |     |      |".PadLeft(35));
  24.         Console.WriteLine("|  {0}  |  {1}  |  {2}   |".PadLeft(41), squarePosition[7], squarePosition[8], squarePosition[9]);
  25.         Console.WriteLine("|_____|_____|______|".PadLeft(35));
  26.        
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement