PythonBattleshipGame
PythonBattleshipGame copied to clipboard
Battleship implemented in Python
PythonBattleshipGame
Play battleship with a friend or on your own.
Requirements
- Pickle
- Colorama
- Collections
Usage
$ python battleship.py
Game options
Option 1: Duo player mode
- 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.
Option 2: Single player mode
- 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.
Option 3: Pre-initialized players
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.