fix: bouncing ball row->column in loop
This commit is contained in:
@ -24,8 +24,8 @@ func main() {
|
||||
|
||||
// create the board
|
||||
board := make([][]bool, width)
|
||||
for row := range board {
|
||||
board[row] = make([]bool, height)
|
||||
for column := range board {
|
||||
board[column] = make([]bool, height)
|
||||
}
|
||||
|
||||
// create a drawing buffer
|
||||
|
Reference in New Issue
Block a user