bool[, ] array = new bool[20, 20];
public Turtle(int[][] inputarray)
public void ChangeRight()
for (int x = b; b > 0; b--)
for (int x = b; b > 0; b--)
for (int x = b; b > 0; b--)
for (int x = b; b > 0; b--)
for (var row = 0; row < array.GetLength(0); ++row)
for (var column = 0; column < array.GetLength(1); ++column)
if (array[row, column] == true)
if (array[row, column] == false)
public static void Main()
int[][] inputArray = {new int[]{2}, new int[]{5, 12}, new int[]{4}, new int[]{5, 12}, new int[]{1}, new int[]{4}, new int[]{5, 12}, new int[]{4}, new int[]{5, 12}, new int[]{2}, new int[]{6}, new int[]{9}, };
Turtle newTurtle = new Turtle(inputArray);
for (int row = 0; row < inputArray.GetLength(0); ++row)
var element = inputArray[row][0];
newTurtle.Move(inputArray[row][1]);
Console.WriteLine("Done");