~smlavine/mazesolver

3db0d5e928bd8044b1657a12a18cbd2738f955be — Sebastian LaVine 2 years ago 9526912
Use idiomatic variable name (no _)
1 files changed, 3 insertions(+), 3 deletions(-)

M mazegenerator/mazegenerator.go
M mazegenerator/mazegenerator.go => mazegenerator/mazegenerator.go +3 -3
@@ 29,9 29,9 @@ func main() {

	// Proportional amount of ones and zeroes
	amt := rows * cols
	zero_amt := int(float64(amt) * density)
	maze := append(make([]byte, zero_amt),
		bytes.Repeat([]byte{1}, amt-zero_amt)...)
	zeroAmt := int(float64(amt) * density)
	maze := append(make([]byte, zeroAmt),
		bytes.Repeat([]byte{1}, amt-zeroAmt)...)

	rand.Shuffle(len(maze), func(i, j int) {
		maze[i], maze[j] = maze[j], maze[i]