Class: Board -I2 (Validations)
cowens87 opened this issue · comments
- valid_coordinate?(coordinate): returns true/false if coordinate is on the board or not.
- valid_placement?(ship.name, an_array_of_coordinates): returns true/false if space is valid to place ship.
--Tests--
- valid_coordinate? (According to IP)
- valid_placement? (test for array same length as ship)
- valid_placement? (test the coordinates within the array are consecutive)
- valid_placement? (test that it's not diagonal)
- valid_placement? (iterate over previous test to confirm validate = true)