fork download
  1. using System;
  2. using System.Text;
  3.  
  4.  
  5. namespace Memory_Maze
  6. {
  7. class Program
  8. {
  9. static char[,] map = new char[10, 10];
  10.  
  11. static Random random = new Random();
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. void generateMap(ref char[,] map)
  19. {
  20. for (int x = 0; x < map.Length; ++x)
  21. for (int y = 0; y < map.Length; ++y)
  22. {
  23. map[x, y] = 'X';
  24. }
  25. }
  26.  
  27. void drawMap(char[,] map)
  28. {
  29. for (int x = 0; x < map.Length; ++x)
  30. {
  31. for (int y = 0; y < map.Length; ++y)
  32. Console.Write(map[x, y]);
  33.  
  34. Console.Write("\n");
  35. }
  36. }
  37.  
  38. static void Main(string[] args)
  39. {
  40. Program program = new Program();
  41.  
  42. program.generateMap(ref map);
  43.  
  44. program.drawMap(map);
  45.  
  46. Console.Read();
  47.  
  48. }
  49. }
  50. }
  51.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty