100 Days of Code Day 27
Today’s exercise was pangram (a word/phrase that includes every letter of the alphabet [a-z] at least once [case-insensitive]). I thought I was showing off by using several higher order functions. It looks like the higher order function I should have used was .every(), but I used a findIndex() to search for a use count of zero instead. One person used a regular expression. Now my fancy solution doesn’t feel so cool anymore.
Next round of deprecated constants:
| Book | Current |
|---|---|
| LCDF_BG8800 | LCDC_BLOCK21 |
| LCDF_BG9800 | LCDC_BG_9800 |
| LCDF_BGON | LCDC_BG_ON |
| IEF_VBLANK | IF_VBLANK |
| LCDF_WINON | LCDC_WIN_ON |
| LCDCF_WIN9C00 | LCDC_WIN_9C00 |
I hope those replacements are right.
Part way through chapter 7 we have a background layer showing. I decided it is time for a hello world program. It is basically just the code up to page 95 but with a different tile map (but the same tile set). I got in trouble trying to use the sprite chars in the tile map. Woops, probably some rule I will find out about shortly or forgot.
I made it through the window part of chapter 7 but I am tired so I will continue with sprites tomorrow.
