fix: bouncing ball row->column in loop

This commit is contained in:
Inanc Gumus
2019-03-21 23:48:48 +03:00
parent 33cfb40bf8
commit 10e0ea269f
8 changed files with 16 additions and 16 deletions

View File

@ -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