Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 751 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 751 Bytes

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
  1. Player 1 has to place his ships.
  2. Player 2 has to place his ships.
  3. Shoot and switch each turn until someone runs out of ships.
Option 2: Single player mode
  1. Place your own ships.
  2. The computer places its ships immediately.
  3. 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.