Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Tic_Tac_Toe
- {
- class Program
- {
- static char[] arr = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
- static int player = 1;
- static int choice;
- static int flag = 0;
- static void Main(string[] args)
- {
- Board();
- }
- // Board method
- private static void Board()
- {
- Console.WriteLine(" | | ");
- Console.WriteLine(" {0} | {1} | {2}", arr[1], arr[2], arr[3]);
- Console.WriteLine("_____|_____|_____ ");
- Console.WriteLine(" | | ");
- Console.WriteLine(" {0} | {1} | {2}", arr[4], arr[5], arr[6]);
- Console.WriteLine("_____|_____|_____ ");
- Console.WriteLine(" | | ");
- Console.WriteLine(" {0} | {1} | {2}", arr[7], arr[8], arr[9]);
- Console.WriteLine(" | | ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement