Skip to content

amupxm/python-battleship-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

this is a simple one player battleship game using python.

Features:

  • Generating the board automatically.
  • two type of board printing ( cheats on/ off)

usage

just run it! !!ATTENTION!! in line 231 with change print mode ( s/t ) you can use cheats

simple out put in (s) mode ( cheats off - standard)

Hit at 6,8
    1     2     3     4     5     6     7     8     9     10   

1      |     |     |     |     |  *  |     |     |     |   
   ----------------------------------------------------------
2      |     |  *  |     |     |     |     |     |     |   
   ----------------------------------------------------------
3      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
4      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
5      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
6      |     |     |     |     |     |  $  |  $  |     |   
   ----------------------------------------------------------
7      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
8      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
9      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
10     |     |     |     |     |     |     |     |     |   

out put in (t) mode ( cheats on )

    1     2     3     4     5     6     7     8     9     10   

1      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
2      |  B  |  B  |  B  |  B  |     |     |  D  |  D  |  D
   ----------------------------------------------------------
3      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
4      |     |  S  |  S  |  S  |     |     |     |     |   
   ----------------------------------------------------------
5      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
6      |     |     |     |     |  P  |     |     |     |   
   ----------------------------------------------------------
7      |     |     |     |     |  P  |     |     |     |   
   ----------------------------------------------------------
8      |     |     |     |     |     |     |     |     |   
   ----------------------------------------------------------
9      |     |  A  |  A  |  A  |  A  |  A  |     |     |   
   ----------------------------------------------------------
10     |     |     |     |     |     |     |     |     |   

About

A simple one player battleship game in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages