Skip to content

Instantly share code, notes, and snippets.

@dbc-challenges
Last active May 14, 2019 12:49
Show Gist options
  • Save dbc-challenges/d4244ce5ae0b30ee267e to your computer and use it in GitHub Desktop.
Save dbc-challenges/d4244ce5ae0b30ee267e to your computer and use it in GitHub Desktop.
Battleship
# Your code here
A sample board for visualization/testing purposes:
A B C D E F G H I J
+---------------------------------------+
1 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
2 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
3 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
4 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
5 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
6 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
7 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
8 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
9 | | | | | | | | | | |
|---|---|---|---|---|---|---|---|---|---|
10 | | | | | | | | | | |
+---------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment