Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 733 Bytes

README.md

File metadata and controls

50 lines (43 loc) · 733 Bytes

acme-mini-sea-battle

Play, don't read

./play.py

Read

Two grids: your opponent's and yours

    A   B   C   D            A   B   C   D
  +---+---+---+---+        +---+---+---+---+
1 |   |   | + |   |      1 | x |   |   |   |
  +---+---+---+---+        +---+---+---+---+
2 |   | - |   |   |      2 |   | x | _ |   |
  +---+---+---+---+        +---+---+---+---+
3 |   |   |   | - |      3 |   | - | + | - |
  +---+---+---+---+        +---+---+---+---+
4 | + | - |   |   |      4 |   |   | - | x |
  +---+---+---+---+        +---+---+---+---+

Empty square

+---+
|   |
+---+

One of your ships

+---+
| x |
+---+

Miss

+---+
| - |
+---+

Hit

+---+
| + |
+---+