Did you know there is a higher order function for Javascript array called .flat() that flattens out a nested array. I didn’t until I saw the solutions to today’s exercise Kindergarten Garden. In that there are two rows of plants and each kid gets two plants per row. The plants are ordered by the alpha sort of the kids name. You have to find out which plants belong to which kid. A pleasant exercise, but my solution does look like a big mess of higher-order function calls. I didn’t need flatten but it may have been nice.

I went to look at my progress and those jerks added yet another exercise to the C# track taking away my 100% status. That cannot stand so I did the new exercise ‘Prism’ which tracks a laser beam finding a path through a set of prisms. I might be the first person to do it on the C# track. Or it could just be no-one with public solutions has done it so far (mine aren’t public either and I am not listed in the community solutions).

Today I decided to work on getting the DVD logo bouncing around in color. Right now it is compatible mode so it should work in GB and GB color models. I can’t remember everything I was going to do with this. I wanted the slight randomize on bounce, a bounce sound effect, and move the music to channel 2. If I do all that I think I would call this done. Then maybe I would turn it into a breakout/arkanoid clone.