|  | @ -32,6 +32,7 @@ class Location: | 
														
													
														
															
																|  |  | return self.horizontal * self.depth |  |  | return self.horizontal * self.depth | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  | @dataclass | 
														
													
														
															
																|  |  | class Puzzle1(Location): |  |  | class Puzzle1(Location): | 
														
													
														
															
																|  |  | def forward(self, distance: int) -> None: |  |  | def forward(self, distance: int) -> None: | 
														
													
														
															
																|  |  | self.horizontal += distance |  |  | self.horizontal += distance | 
														
													
												
													
														
															
																|  | @ -43,6 +44,7 @@ class Puzzle1(Location): | 
														
													
														
															
																|  |  | self.depth += distance |  |  | self.depth += distance | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  | @dataclass | 
														
													
														
															
																|  |  | class Puzzle2(Location): |  |  | class Puzzle2(Location): | 
														
													
														
															
																|  |  | def forward(self, distance: int) -> None: |  |  | def forward(self, distance: int) -> None: | 
														
													
														
															
																|  |  | self.horizontal += distance |  |  | self.horizontal += distance | 
														
													
												
													
														
															
																|  | 
 |