this is a simple one player battleship game using python.
- Generating the board automatically.
- two type of board printing ( cheats on/ off)
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 | | | | | | | | |