Skip to content

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Robertson committed Jan 18, 2023
1 parent 8e6f75d commit 4b1f99c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 931 deletions.
16 changes: 16 additions & 0 deletions environment/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package environment

import (
"reflect"
"log"
"image"
"image/color"
Expand Down Expand Up @@ -32,7 +33,22 @@ func DrawMaze(currentMaze *maze.Maze, canvas *image.Paletted) {
rows = remove(rows, len(rows)-1)
rows = remove(rows, len(rows)-1)
for u := 0; u < len(rows); u++ {

rows[u] = strings.TrimSpace(rows[u])
newRow := ""
for v := 0; v < len(rows[u]); v++ {
if string(rows[u][v]) == "S" {
log.Print(rows[u][v])
reflect.TypeOf(rows[u][v])
var hash byte = 35
reflect.TypeOf(hash)
// rows[u][v] = hash
}
if v % 2 == 0 {
newRow = newRow + string(rows[u][v])
}
}
rows[u] = newRow
}
// print to check
for u := 0; u < len(rows); u++ {
Expand Down
Loading

0 comments on commit 4b1f99c

Please sign in to comment.