def __init__(self, settings):
    '\n        Constructor for the BattleshipGame class.\n\n        Parameters\n        ----------\n        settings : dict\n            Settings to create the game based off of.\n        '
    self.settings = settings
    self.height = settings['height']
    self.width = settings['width']
    self.p1_grid = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p1_grid_2 = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p1_ships = []
    self.p2_grid = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p2_grid_2 = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p2_ships = []
    self.p2_cpu = (settings['p_type'] == 'CPU')
    self.turn = 0
    self.p1_mines = 0
    self.p2_mines = 0
    self.p1_move = ''
    self.p2_move = ''
    self.cpu_data = {'shots': [], 'misses': [], 'hits': [], 'p1_ships': None}
Constructor for the BattleshipGame class.

Parameters
----------
settings : dict
    Settings to create the game based off of.
def __init__(self, settings):
    '\n        Constructor for the BattleshipGame class.\n\n        Parameters\n        ----------\n        settings : dict\n            Settings to create the game based off of.\n        '
    self.settings = settings
    self.height = settings['height']
    self.width = settings['width']
    self.p1_grid = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p1_grid_2 = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p1_ships = []
    self.p2_grid = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p2_grid_2 = [[0 for _ in range(self.width)] for _ in range(self.height)]
    self.p2_ships = []
    self.p2_cpu = (settings['p_type'] == 'CPU')
    self.turn = 0
    self.p1_mines = 0
    self.p2_mines = 0
    self.p1_move = 
    self.p2_move = 
    self.cpu_data = {'shots': [], 'misses': [], 'hits': [], 'p1_ships': None}