|  | @@ -45,8 +45,8 @@ func readFile(file *os.File) [][]string {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  type position struct {
 |  |  type position struct {
 | 
											
												
													
														|  | -	x float64
 |  | 
 | 
											
												
													
														|  | -	y float64
 |  | 
 | 
											
												
													
														|  | 
 |  | +	x int
 | 
											
												
													
														|  | 
 |  | +	y int
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  func makeMove(path []string) position {
 |  |  func makeMove(path []string) position {
 | 
											
										
											
												
													
														|  | @@ -55,21 +55,21 @@ func makeMove(path []string) position {
 | 
											
												
													
														|  |  	for _, item := range path {
 |  |  	for _, item := range path {
 | 
											
												
													
														|  |  		switch item {
 |  |  		switch item {
 | 
											
												
													
														|  |  		case "e":
 |  |  		case "e":
 | 
											
												
													
														|  | -			currentPosition.x += 1
 |  | 
 | 
											
												
													
														|  | 
 |  | +			currentPosition.x += 2
 | 
											
												
													
														|  |  		case "w":
 |  |  		case "w":
 | 
											
												
													
														|  | -			currentPosition.x -= 1
 |  | 
 | 
											
												
													
														|  | 
 |  | +			currentPosition.x -= 2
 | 
											
												
													
														|  |  		case "se":
 |  |  		case "se":
 | 
											
												
													
														|  | -			currentPosition.x += 0.5
 |  | 
 | 
											
												
													
														|  | -			currentPosition.y -= 0.5
 |  | 
 | 
											
												
													
														|  | 
 |  | +			currentPosition.x += 1
 | 
											
												
													
														|  | 
 |  | +			currentPosition.y -= 1
 | 
											
												
													
														|  |  		case "sw":
 |  |  		case "sw":
 | 
											
												
													
														|  | -			currentPosition.x -= 0.5
 |  | 
 | 
											
												
													
														|  | -			currentPosition.y -= 0.5
 |  | 
 | 
											
												
													
														|  | 
 |  | +			currentPosition.x -= 1
 | 
											
												
													
														|  | 
 |  | +			currentPosition.y -= 1
 | 
											
												
													
														|  |  		case "nw":
 |  |  		case "nw":
 | 
											
												
													
														|  | -			currentPosition.x -= 0.5
 |  | 
 | 
											
												
													
														|  | -			currentPosition.y += 0.5
 |  | 
 | 
											
												
													
														|  | 
 |  | +			currentPosition.x -= 1
 | 
											
												
													
														|  | 
 |  | +			currentPosition.y += 1
 | 
											
												
													
														|  |  		case "ne":
 |  |  		case "ne":
 | 
											
												
													
														|  | -			currentPosition.x += 0.5
 |  | 
 | 
											
												
													
														|  | -			currentPosition.y += 0.5
 |  | 
 | 
											
												
													
														|  | 
 |  | +			currentPosition.x += 1
 | 
											
												
													
														|  | 
 |  | +			currentPosition.y += 1
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -99,6 +99,10 @@ func part1(tiles map[position]int) map[position]int {
 | 
											
												
													
														|  |  	return blackTiles
 |  |  	return blackTiles
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +func findNeighbours(tile position) {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  func main() {
 |  |  func main() {
 | 
											
												
													
														|  |  	if len(os.Args) < 2 {
 |  |  	if len(os.Args) < 2 {
 | 
											
												
													
														|  |  		log.Fatal("You need to specify a file!")
 |  |  		log.Fatal("You need to specify a file!")
 | 
											
										
											
												
													
														|  | @@ -119,4 +123,5 @@ func main() {
 | 
											
												
													
														|  |  	tiles := makeAllMoves(paths)
 |  |  	tiles := makeAllMoves(paths)
 | 
											
												
													
														|  |  	blackTiles := part1(tiles)
 |  |  	blackTiles := part1(tiles)
 | 
											
												
													
														|  |  	fmt.Println("Part1:", len(blackTiles))
 |  |  	fmt.Println("Part1:", len(blackTiles))
 | 
											
												
													
														|  | 
 |  | +	fmt.Println(blackTiles)
 | 
											
												
													
														|  |  }
 |  |  }
 |