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)
}
// draw a smiley

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

View File

@@ -35,8 +35,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

View File

@@ -118,8 +118,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

View File

@@ -53,8 +53,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

View File

@@ -68,8 +68,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

View File

@@ -46,8 +46,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

View File

@@ -66,8 +66,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