Number Spiral
A number spiral is a square grid with and odd width/height containing integers. The center cell contains 1, and spirals outwards counting up.
Project Description
This project implements a number spiral of a given size, and then returns the adjacent sum of a given number.
Key Features
- The first number from the input file determines the dimensions of the spiral. All remaining numbers in the file have their adjacent sums calculated.
- After input validation, the output is a visualization of the spiral, and the adjacent sums of given numbers.
- The spiral is created using a 2D Array, and uses execption handling to process invalid data.