100 Days of Code Day 55
I seem to finally be back in the swing of things. Todays exersises:
- Yacht: Calculate the score for a game called Yacht which is apparantely a precursor to Yahtzee.
- Resistor Color Trio: Decode three resistor color numbers, this time with the third digit being the multiplier. If you have more than three bands you need make the middle ones just multiply the amount by ten.
- Dominoes: See if you can make a linkage of dominoes where the value at the end of one tile matches the value at the beginning of the next. Also make it work as a loop so the ends match too.
- Say: I finish this and exercism insults me by saying come back and try again when you have done more exercises. What’s wrong with it? It passed all the tests. Is it too long? It is less than 100 lines. How rude. Anyway for a number 0 to 999,999,999,999 write the number as words two thousand twenty-two for example
I did one extra to try to make up for the waste that was the weekend. At three a day I think I will be on par in about six days. However, there are four hard ones in the next eighteen. So that is probably not going to go as planned. I think they added a new exercise named Prism since I started.
For the second half, I finished up the Game Boy color chapter with the Gameboy double speed demo and the Game Boy/Game Boy Color compatability mode. Next is Chapter 17 on the Gameboy Printer. I might actually have a GameBoy printer and some thermal paper, I will need to go look. Below is a video of the counting between normal and double speed modes. The count in double speed mode is roughly double (surprise). On the picture for the page you may notice a GameBoy advance mode. It is really just the GameBoy color mode but with a brighter palette so it doesn’t look too dark on the game boy advance.
