Yesterday was the half way mark, WAHOOO!!

Anyway, today’s exercises were:

  • Pig Latin: Translate a word or phrase into pig-latin. I decided regular expressions were a good idea here. I am missing a string.findIndex() function a lot.
  • Proverb: Recite the for want of a nail the kingdom was lost thing. Where the guy won’t stop and put a nail in his horse’s horse shoe and the consequences balloon to terrible heights due to dumb stubbornness.
  • Twelve days of Christmas: This one could really use some specifications where they say they want a new line after each verse and a second newline between iterations when reciting multiple verses. Again, it is strange I got two nursery rhymes.

I still have 15 extra I need to do to get back to an average of one per day.

I got two more demos working from Chapter 16 of Gameboy Coding Adventure:

  • cgb_sprite: This was a bit of a debugging pain. The coin sprites fell apart during the animation. It turns out you can’t optimize that tileset without breaking the code’s expectations. I had to make a special makefile rule to generate the sprite tiles. The other images require that you optimize tiles, the sprite one requires you don’t.
  • cgb_priority: I also had problems with this one. Mostly due to trying to figure out which changed hardware constant should be replaced with what and guessing incorrectly.