w1d3

Today in the morning session we went into detail on “pass by reference” and learned some nice ways to avoid having issues with it, including passing a block into a new array or hash call, using the dup method, and creating our own explicit methods to behave exactly the way we want.

We also learned how to circumvent “pass by reference” issues with nested arrays by doing a deeper dupe on the inner arrays.

For our exercises we were asked to build simple simulations of existing games: Mastermind and Hangman. Both exercises brought up their own share of problems to navigate, but by the end of the day I was felt like I would be able to implement a good solution from start to finish on any similar problems