Using 2D arrays to randomly position "ships" in Battleships
I think I'll write a Battleships game...
Here’s an interesting problem: when writing a console application version of “Battleships” in Java, how do you make the ships appear in a random position on the board every time you start a new game?
I had thi...
mimsydev.hashnode.dev3 min read