module SeaBattle::Support
Common methods
Public Instance Methods
mixed_board_positions()
click to toggle source
# File lib/sea_battle/support.rb, line 7 def mixed_board_positions offset = Random.rand(@horizontal * @vertical) (0...@vertical).to_a.product( (0...@horizontal).to_a ).rotate(offset) end