Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.10 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Application
  4. {
  5.     class MainClass
  6.     {
  7.         static int n = 10;
  8.         static int m = 15;
  9.         public static void Main (string[] args)
  10.         {
  11.  
  12.             int[,] arraymap = {
  13.                 { 0, 0, 1, 0, 0,   0, 0, 0, 0, 0,   0, 0, 0, 0, 0 },
  14.                 { 0, 0, 0, 0, 0,   0, 0, 0, 0, 0,   0, 0, 0, 0, 0 },
  15.                 { 0, 0, 0, 0, 2,   0, 0, 0, 0, 0,   3, 0, 0, 0, 0 },
  16.                 { 0, 0, 0, 0, 2,   0, 0, 0, 0, 0,   0, 2, 0, 0, 0 },  
  17.                 { 0, 0, 0, 0, 2,   2, 2, 2, 2, 2,   0, 2, 0, 0, 0 },
  18.  
  19.                 { 0, 0, 0, 0, 0,   0, 0, 0, 0, 2,   0, 2, 0, 0, 0 },
  20.                 { 0, 0, 1, 0, 0,   0, 0, 0, 0, 2,   0, 0, 0, 0, 0 },
  21.                 { 0, 0, 0, 0, 0,   0, 1, 0, 0, 0,   0, 2, 0, 0, 0 },
  22.                 { 0, 0, 0, 0, 0,   0, 0, 0, 0, 0,   0, 2, 0, 0, 0 },
  23.                 { 0, 0, 1, 0, 1,   0, 0, 0, 0, 0,   0, 2, 0, 0, 0 }
  24.             };
  25.  
  26.         /*  for (int i = 0; i < n; i++) {
  27.                 for (int j = 0; j < m; j++) {
  28.                     Console.Write (arraymap [i, j] + " ");
  29.                 }
  30.                 Console.WriteLine ();
  31.             }
  32.  
  33.             Console.ReadKey (); */
  34.         //  DrawField ();
  35.  
  36.  
  37.         }
  38.  
  39.         public void DrawField () {
  40.             int i, j;
  41.  
  42.             for (i = 1; i < n; i++) {
  43.                 for (j = 1; j < m; j++) {
  44.  
  45.                    
  46.             }
  47.         }
  48.     }
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement