mirror of
				https://github.com/onyx-and-iris/aoc2024.git
				synced 2025-10-31 21:11:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			176 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			176 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package two
 | |
| 
 | |
| func neighbours(p point) [4]point {
 | |
| 	return [4]point{
 | |
| 		{p.x - 1, p.y - 1, NW},
 | |
| 		{p.x + 1, p.y - 1, NE},
 | |
| 		{p.x + 1, p.y + 1, SE},
 | |
| 		{p.x - 1, p.y + 1, SW},
 | |
| 	}
 | |
| }
 |