Game development as an Art

Sato Game Dev

Code Exercises


Coding tools


Reading 2D array of fixed number of positions (6):
1
2
3
4
5
6
            int[][] arr = new int[6][];

            for (int i = 0; i < 6; i++)
            {
                arr[i] = Array.ConvertAll(Console.ReadLine().Split(' '), arrTemp => Convert.ToInt32(arrTemp));
            }