Is there a good way to change my previous code:
char[][] board = Enumerable.Repeat(Enumerable.Repeat('-', 7).ToArray(), 7).ToArray();
to use multidimensional arrays instead?
eg.
char[,] = ...
the array should represent the following data structure:
------- ------- ------- ------- ------- ------- -------
char[,] board = new char[7,7]; for(int i =0; i< 7; i++) { for (int k = 0; k < 7; k++) { board[i,k] = '-'; } }
Are you looking for this?
Source: https://habr.com/ru/post/1012393/More articles:Why do my triggers end in empty control? - c #Firebase isEmailVerified returns false even after checking email - androiddocument.all not working in Firefox - javascriptHow to assign an array with a serrated contour? - arraysHow to write facet_wrap (ggplot2) in a function - rOpenCV Python: normalize image - pythonInsert user-defined number of spaces before and after a string using C # - stringError: cannot write to a document from an asynchronously loaded external script - javascriptHow to add a checkmark to a UIActionSheet button? - iosC ++: how to pass any iterative type as a parameter to a function - c ++All Articles