otakusenpai
12/27/2018, 4:25 AMfor(m in 0..(8-x))
for(n in 0..(8-y)) {
if(board.board[m][n].group != this.group) {
}
}
All I want is that the 2d array should have the ability to increase or decrease its row and column....without a for loop. ThnxPavlo Liapota
12/27/2018, 8:04 AMgriffio
12/27/2018, 9:07 AM(0..(8-x)).flatMap { m -> (0..(8-y)).map { n -> m to n } }
Pavlo Liapota
12/27/2018, 9:37 AMArray2
implementation based on one-dimensional array, so you can just get data
and iterate though all elements.