Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-12 | Puzzle 22: Remove unneeded variable | Adam Spragg | |
Process command-line options by re-using a different variable than the one we were re-using before. | |||
2023-01-12 | Puzzle 22: Simplify because map_elem() never returns '\n' | Adam Spragg | |
2023-01-12 | Puzzle 22: Change coordinate system so that 'y' goes up | Adam Spragg | |
Having 'y' go down was easier with navigating through the memory buffer we were using to store the map, but some of the work we'll have to do with the cube net is easier for me to get my head around with a more traditional coordinate system. | |||
2023-01-12 | Puzzle 22: Create an abstraction for "map" | Adam Spragg | |
This will help with some future changes | |||
2023-01-12 | Puzzle 22: Use an `int` to hold the result of fgetc() | Adam Spragg | |
A char won't do. | |||
2023-01-03 | Puzzle 22: Change where we check for movement special cases | Adam Spragg | |
2023-01-03 | Puzzle 22: Store elf position as x,y coords | Adam Spragg | |
Rather than just a linear position in the map buffer | |||
2023-01-02 | Puzzle 22: Store proposed next position as an elf | Adam Spragg | |
That way we will keep a proposed orientation change alongside the position change. | |||
2023-01-02 | Puzzle 22: Add ability to select "net" map type | Adam Spragg | |
It doesn't work yet... | |||
2023-01-02 | Puzzle 22: Allow for moving around changing our orientation | Adam Spragg | |
2023-01-02 | Puzzle 22: Create "elf" type to hold position and orientation | Adam Spragg | |
This will help when just moving around can change the orientation, as you move over an edge | |||
2022-12-22 | Solve puzzle 22 part 1 | Adam Spragg | |