I worked on creating the core to a lock that looks similar to a lock like this: I started by creating the outline of the face of the lock, then extruded that face. Then I created a cylinder around a portion of the core and found the difference of the two in order to get […]
Agenda what ?s program this list comprehensions translating between list comprehensions and imperative loops map Note We start with a Program This to gel our understanding of Haskell function structure: Write function indexOf, which accepts a needle and haystack, and returns where the needle lives in the haystack. If the needle can’t be found, it […]
TODO Finish up the character animations from last lab if you haven’t already. The next lab assumes that you have them working. Lab Today we will change things up a bit. We will have a game jam. For the next 75 minutes, we will hastily put together a game that satisfies some theme. Jams like this […]
Agenda what ?s functions capitalize (with guards, case, and pattern matching) tail’ nbelows contains indexOf list comprehensions how to translate TODO Bleakr’s due before April 6. Note Last time we mentioned that a primary theme of a functional language is that functions are a big deal. They can be stored in variables, they are a […]
My version of 3D Pacman.
Agenda what ?s Note Code b4a938c
Agenda what ?s what we mean by functional functions are first-class immutability expressions everywhere functions in Haskell coping with looplessness guards to case statements to pattern matching TODO Watch Erik Meijer discuss list comprehensions in both Haskell and Microsoft’s LINQ in the video below. On a 1/4 sheet, generate 3 interesting lists using Haskell’s list […]