Play battleship with a friend or on your own.
- Pickle
- Colorama
- Collections
$ python battleship.py
- Player 1 has to place his ships.
- Player 2 has to place his ships.
- Shoot and switch each turn until someone runs out of ships.
- Place your own ships.
- The computer places its ships immediately.
- As soon as you have shot, the computer shoots and you are immediately back on turn.
Certainly during developing it may be convenient to not have to initialize the players every time. Then use this option so this step is skipped.