Open Lindsey-N opened 7 years ago
Great job! I could tell you were enjoying this based on the code, and I'm glad you attempted the bonus. I'm not sure you realized this, but your bonus-solution wasn't running (it was just the ./solution script, which runs first). The bonus solution had a few syntax errors. For example, "if else" is not valid... you need to write something like this:
if (some true statement) { run some code here } else { run some other code here }
But it looks like you were on the right track!
The dwarf normal homework, as well as the bonus are in the solution.js and bonus-solution.js in the travelling dwarf file. The secondary bonus that Jeff put up at the end of class is in the script section of index.html of grid.
I found this homework to be a fun challenge, especially the bonus. I'm sure if I tried hard enough I could cut down the bonus to be fewer lines, but the overall set up seems to me to be the simplest solution to that problem.
I had a bit of trouble googling things, but that's mostly because I can't remember the correct terminology for javascript, so I had to go through a couple of iterations of google before I found what I was looking for. It wasn't that bad! I had a lot of fun here!