SHARE
TWEET

Untitled

a guest Sep 16th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private static void WriteBoard(int size)
  2. {
  3.     for (int j1 = 0; j1 < size; j1++)
  4.             {
  5.                 Console.WriteLine();
  6.                 if (j1 % 2 == 0)
  7.                 {
  8.                     for (int j = 0; j < size / 2; j++)
  9.                     {
  10.                         Console.Write("#");
  11.                         Console.Write(".");
  12.                     }
  13.                 }
  14.                 else {
  15.                     for (int l = 0; l < size / 2; l++)
  16.                     {
  17.                         Console.Write(".");
  18.                         Console.Write("#");
  19.                     }
  20.                 }
  21.              }
  22.     Console.WriteLine();
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top