Expand description
Functionsยง
- parse
- Converts input lines into a pair of
Pointand integer amount, to indicate direction and magnitude respectively. Then determines the maximum extent of the head so that we can allocate a two-dimensional grid. - part1
- Simulate a rope length of 2.
- part2
- Simulate a rope length of 10.
- simulate ๐
- Simulates a rope of arbitrary length.