Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I believe I have most basic functions working. I did notice I leaned toward keeping data in arrays rather than objects as I found it easier to maneuver. I find that when I tried to put data into an object format I ended up wanting to duplicate information into arrays in order to help iterate. I did ask a classmate how she approached it and she mentioned a 'for - in' loop that I would like to try to iterate through the properties of the object. I'm a little disappointed that I didn't figure out how to Google this before proceeding with the method I used.
I did end up separating out scrabble, player and tilebag because I couldn't figure out how to require all three in another file (test) when they were in a single file. I ended up writing my tests all in one file though I have a feeling this is not how it's supposed to go.
I utilized Istanbul to figure out coverage but haven't quite inspected the reports deeply -- seems pretty similar to simplecov.
I find the 'instance methods' not quite intuitive -- how would I utilize 'this' if I am not instantiating an instance by passing an argument / property? Would I need to set some arbitrary 'this' property? Would I be setting some default properties I want all instances to start with? ie. my Scrabble could be a function with no parameters but the same properties and functions it has now?
I haven't ever gotten to the create a board section on the Scrabble projects but think it might be important practice for something like a tic tac toe whiteboarding exercise (nested arrays?).