JavaScript JavaScript Unit Testing Behavior Driven Development with Mocha & Chai Answer: Expanding Our Expectations

What is Guil assuming with the damage array?

I just wanted to understand Guil's thinking with the damage array. From how I view it, when the damage array is the same as the locations array, is that how a 'sunken ship' is determined? Then I assume that there will be some logic in place whereby once all ships have been damaged (all ships will have location and damage as the same array elements), a winner is determined?

Thanks for the help.

Regards, Deb