fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. static void Main()
  6. {
  7. bool f = false;
  8. int n = 0;
  9. int h = 0;
  10. do
  11. {
  12. try
  13. {
  14. Console.Write("Enter the size of goban: ");
  15. n = int.Parse(Console.ReadLine());
  16. if (n > 50 || n <= 0)
  17. throw new Exception();
  18. else
  19. f = false;
  20. }
  21. catch
  22. {
  23. f = true;
  24. }
  25. } while (f);
  26. f = false;
  27. Console.WriteLine();
  28. do
  29. {
  30. try
  31. {
  32. Console.Write("Enter the handicap: ");
  33. h = int.Parse(Console.ReadLine());
  34. if (n < 0)
  35. throw new Exception();
  36. else
  37. f = false;
  38. }
  39. catch
  40. {
  41. f = true;
  42. }
  43. } while (f);
  44. if (n > 0)
  45. {
  46. Goban Game = new Goban(n, h);
  47. do
  48. {
  49. Game.Draw();
  50. Game.Move();
  51. Game.ComputeDame();
  52. Game.UpdateColor();
  53. Game.Count();
  54. Game.UpdateChecking();
  55. Game.ComputeScore();
  56. Game.Print();
  57. } while (!Game.IsComplete());
  58. Game.Draw();
  59. Game.DeclareWinner();
  60. Console.ReadLine();
  61. }
  62. }
  63. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(46,17): error CS0246: The type or namespace name `Goban' could not be found. Are you missing an assembly reference?
prog.cs(49,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(50,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(51,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(52,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(53,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(54,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(55,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(56,21): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(57,27): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(58,17): error CS0841: A local variable `Game' cannot be used before it is declared
prog.cs(59,17): error CS0841: A local variable `Game' cannot be used before it is declared
Compilation failed: 12 error(s), 0 warnings
stdout
Standard output is empty