Fix tabs
This commit is contained in:
@@ -9,18 +9,18 @@ import (
|
||||
|
||||
func main() {
|
||||
rockStructures := common.Parse(*bufio.NewScanner(os.Stdin))
|
||||
tileMap := common.NewMap()
|
||||
tileMap := common.NewMap()
|
||||
|
||||
for _, rockStructure := range rockStructures {
|
||||
tileMap.AddRockStructure(rockStructure)
|
||||
}
|
||||
tileMap.AddFloor()
|
||||
for _, rockStructure := range rockStructures {
|
||||
tileMap.AddRockStructure(rockStructure)
|
||||
}
|
||||
tileMap.AddFloor()
|
||||
|
||||
units := 0
|
||||
for !tileMap.IsSourceBlocked() {
|
||||
tileMap.DropSand()
|
||||
units++
|
||||
}
|
||||
units := 0
|
||||
for !tileMap.IsSourceBlocked() {
|
||||
tileMap.DropSand()
|
||||
units++
|
||||
}
|
||||
|
||||
fmt.Println(units)
|
||||
fmt.Println(units)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user