Today, we continued to work on our atomization of methods and DRYing out by making an interactive minesweeper game. Approach was pretty similar to the hangman game, and it didn’t come too hard thanks to past experience. Something to check out in the future is using UTF-8 characters for prettier displays of arrays and game boards. We also went over some etiquette for git commits, which should be in present tense. We were introduced to JSON and YAML formats, and the YAML came in handy for saving ruby objects for access later. Also did the first code review today. Seems like other pairs have very similar approaches, and differences are largely in the little things, like favorite go-to methods for common tasks or naming patterns.
- can do
putsor var assignment before a ternary operator
- arrays of arrays: