Skip to content

evbogdanov/acme-mini-sea-battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Play a mini version of Sea Battle in Acme text editor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages