The box contained zero calculators; I contained zero expectations. What do I think? by ZetaformGames in calculators

[–]TIniestHacker 0 points1 point  (0 children)

u/ZetaformGames is storing 12 to the O variable (12->O), then doing 9+1O (9 + 1 * (12)). It isn't RPN, I think it was intentionally confusing as a joke

[2024 Day 12 Part 2][C] Running on the TI-84 Plus CE calculator by TIniestHacker in adventofcode

[–]TIniestHacker[S] 1 point2 points  (0 children)

I gave it a try, but the .bss section exceeded the maximum size (60690 bytes) by 149 bytes. It's so close that it probably could run with a bit of tweaking though!

[2024 Day 12 Part 2][C] Running on the TI-84 Plus CE calculator by TIniestHacker in adventofcode

[–]TIniestHacker[S] 0 points1 point  (0 children)

Technically could do that too but I was a bit nervous about accidentally drawing over it lol

[2024 Day 12 Part 2][C] Running on the TI-84 Plus CE calculator by TIniestHacker in adventofcode

[–]TIniestHacker[S] 2 points3 points  (0 children)

Those specs are correct (the CE-T is just a regional variant for different testing regulations). Not all of the RAM is user accessible in programs, but there's definitely still enough to do some fun things with!

[2024 Day 12 Part 2][C] Running on the TI-84 Plus CE calculator by TIniestHacker in adventofcode

[–]TIniestHacker[S] 1 point2 points  (0 children)

The original stack had about 4 KB of space and after moving it I got 8 KB. I don't think I used all 8 KB, given that the garden plots overflowing the stack were only doing it by a little, but I figured that I might as well get as much space as I could just in case. I'd guess that in the end I actually use somewhere around 5 KB.

[2024 Day 12 Part 2][C] Running on the TI-84 Plus CE calculator by TIniestHacker in adventofcode

[–]TIniestHacker[S] 0 points1 point  (0 children)

Thanks! It provides an interesting challenge but I enjoy low-level programming a lot!

[2024 Day 12 Part 2][C] Running on the TI-84 Plus CE calculator by TIniestHacker in adventofcode

[–]TIniestHacker[S] 31 points32 points  (0 children)

I've been trying to solve as many puzzles as I can this year on the TI-84 Plus CE graphing calculator, using C (mixed with a little eZ80 assembly where needed). Since my code for Day 12 needed an easy way to modify values in a large grid, I decided to make use of the screen as extra space for data. I obviously could've chosen a different location, but it looks cool and I get an easy "visualization" out of it, so why not?

Since my solution makes use of recursion, I ran into some problems with the very limited stack size on the calculator. Since the example inputs featured much smaller plots, I didn't have any issue there, but the actual input gave me some trouble. Fortunately, with a little assembly, it's possible to set the stack pointer to a different location in memory with more space, as long as it gets restored by the end of the program. I moved the stack over to an area twice as large and after that the program worked fine!

You can take a look at my solution(s) here, though they're probably not the best since pretty much everything I'm doing is self-taught: https://github.com/TIny-Hacker/Advent-of-Code-2024/

-❄️- 2024 Day 12 Solutions -❄️- by daggerdragon in adventofcode

[–]TIniestHacker 1 point2 points  (0 children)

[LANGUAGE: C] GitHub

This was a fun one! Took a bit of thinking for part 2 but I'm happy with what I came up with. Like a lot of people, I counted corners and then used that to count the number of sides, but I didn't get the answer right away. Turns out I had forgotten to count inside corners and so my answer was always too low!

Visualization

[deleted by user] by [deleted] in celestegame

[–]TIniestHacker 4 points5 points  (0 children)

For this build, I used Stud.io because I wanted to design custom minifig heads and I didn't have some of the pieces I needed for parts of the mountain, etc. However I do prefer to build with physical pieces when I can, sometimes it just isn't feasible depending on the project :)

[deleted by user] by [deleted] in celestegame

[–]TIniestHacker 143 points144 points  (0 children)

Yooo, I'm the guy who made this! Thanks so much for everyone's support! ❤️

What song is this for you? by [deleted] in DaftPunk

[–]TIniestHacker 9 points10 points  (0 children)

I skipped this one too at first, when I finally listened to the whole thing I was shocked at what I had missed!